.. _ocafilterfir: 1.1.1.12 OcaFilterFIR ====================== Class Hierarchy: :ref:`OcaRoot ` : :ref:`OcaWorker ` : :ref:`OcaActuator ` : :ref:`OcaFilterFIR ` .. cpp:class:: OcaFilterFIR: OcaActuator Finite impulse response (FIR) filter. **Properties**: .. _ocafilterfir_classid: .. cpp:member:: static const OcaClassID ClassID = "1.1.1.12" Number that uniquely identifies the class. Note that this differs from the object number, which identifies the instantiated object. This property is an override of the **OcaRoot** property. This property has id ``1.1``. .. _ocafilterfir_classversion: .. cpp:member:: static const OcaClassVersionNumber ClassVersion = 3 Identifies the interface version of the class. Any change to the class definition leads to a higher class version. This property is an override of the **OcaRoot** property. This property has id ``1.2``. .. _ocafilterfir_coefficients: .. cpp:member:: OcaList Coefficients Array of FIR Coefficients. Number of entries shall be equal to the value of the **Order** property plus 1. This property has id ``4.2``. .. _ocafilterfir_length: .. cpp:member:: OcaUint32 Length Length of the filter, in samples. Readonly. This property has id ``4.1``. .. _ocafilterfir_samplerate: .. cpp:member:: OcaFrequency SampleRate Sampling rate inside the filter. Note: This rate is not necessarily the same as the Device input or output sampling rate. This property has id ``4.3``. Properties inherited from :ref:`ocaactuator`: - :cpp:texpr:`OcaClassID` :ref:`OcaRoot::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaRoot::ClassVersion ` - :cpp:texpr:`OcaBoolean` :ref:`OcaRoot::Lockable ` - :cpp:texpr:`OcaLockState` :ref:`OcaRoot::LockState ` - :cpp:texpr:`OcaONo` :ref:`OcaRoot::ObjectNumber ` - :cpp:texpr:`OcaString` :ref:`OcaRoot::Role ` - :cpp:texpr:`OcaClassID` :ref:`OcaWorker::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaWorker::ClassVersion ` - :cpp:texpr:`OcaBoolean` :ref:`OcaWorker::Enabled ` - :cpp:texpr:`OcaString` :ref:`OcaWorker::Label ` - :cpp:texpr:`OcaTimeInterval` :ref:`OcaWorker::Latency ` - :cpp:texpr:`OcaONo` :ref:`OcaWorker::Owner ` - :cpp:texpr:`OcaMap` :ref:`OcaWorker::PortClockMap ` - :cpp:texpr:`OcaList` :ref:`OcaWorker::Ports ` - :cpp:texpr:`OcaClassID` :ref:`OcaActuator::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaActuator::ClassVersion ` **Methods**: .. _ocafilterfir_getlength: .. cpp:function:: OcaStatus GetLength(OcaUint32 &Length, OcaUint32 &minLength, OcaUint32 &maxLength) Gets the length and length limits of the FIR filter. This method has id ``4.1``. - :cpp:expr:`Length`: Output parameter. - :cpp:expr:`minLength`: Output parameter. - :cpp:expr:`maxLength`: Output parameter. .. _ocafilterfir_getcoefficients: .. cpp:function:: OcaStatus GetCoefficients(OcaList &Coefficients) Gets the coefficients of the FIR filter. This method has id ``4.2``. - :cpp:expr:`Coefficients`: Output parameter. .. _ocafilterfir_setcoefficients: .. cpp:function:: OcaStatus SetCoefficients(OcaList Coefficients) Sets the coefficients of the FIR filter. This method has id ``4.3``. - :cpp:expr:`Coefficients`: Input parameter. .. _ocafilterfir_getsamplerate: .. cpp:function:: OcaStatus GetSampleRate(OcaFrequency &Rate, OcaFrequency &minRate, OcaFrequency &maxRate) Gets the value and limits of the **SampleRate** property. This method has id ``4.4``. - :cpp:expr:`Rate`: Output parameter. - :cpp:expr:`minRate`: Output parameter. - :cpp:expr:`maxRate`: Output parameter. .. _ocafilterfir_setsamplerate: .. cpp:function:: OcaStatus SetSampleRate(OcaFrequency Rate) Sets the sampling rate of the FIR filter. This method has id ``4.5``. - :cpp:expr:`Rate`: Input parameter. Methods inherited from :ref:`ocaactuator`: - :ref:`OcaActuator::GetClassIdentification ` - :ref:`OcaActuator::GetLockable ` - :ref:`OcaActuator::GetLockState ` - :ref:`OcaActuator::GetRole ` - :ref:`OcaActuator::SetLockNoWrite ` - :ref:`OcaActuator::SetLockNoReadWrite ` - :ref:`OcaActuator::Unlock ` - :ref:`OcaActuator::AddPort ` - :ref:`OcaActuator::DeletePort ` - :ref:`OcaActuator::DeletePortClockMapEntry ` - :ref:`OcaActuator::GetEnabled ` - :ref:`OcaActuator::GetLabel ` - :ref:`OcaActuator::GetLatency ` - :ref:`OcaActuator::GetOwner ` - :ref:`OcaActuator::GetPath ` - :ref:`OcaActuator::GetPortClockMap ` - :ref:`OcaActuator::GetPortClockMapEntry ` - :ref:`OcaActuator::GetPortName ` - :ref:`OcaActuator::GetPorts ` - :ref:`OcaActuator::SetEnabled ` - :ref:`OcaActuator::SetLabel ` - :ref:`OcaActuator::SetLatency ` - :ref:`OcaActuator::SetPortClockMap ` - :ref:`OcaActuator::SetPortClockMapEntry ` - :ref:`OcaActuator::SetPortName `