modm API documentation for STM32F437ZIT7
modm::filter::Fir< T, N, BLOCK_SIZE, ScaleFactor > Class Template Reference

Public Member Functions

 Fir (const float (&coeff)[N])
 
void setCoefficients (const float (&coeff)[N])
 
void reset ()
 Resets the tap buffer.
 
void append (const T &input)
 Appends new tap.
 
void update ()
 Calculates g[0]. More...
 
const T & getValue () const
 Returns g[0].
 

Constructor & Destructor Documentation

template<typename T , int N, int BLOCK_SIZE, signed int ScaleFactor = 1>
modm::filter::Fir< T, N, BLOCK_SIZE, ScaleFactor >::Fir ( const float (&)  coeff[N])
Parameters
coeffarray containing the coefficients

Member Function Documentation

template<typename T , int N, int BLOCK_SIZE, signed int ScaleFactor = 1>
void modm::filter::Fir< T, N, BLOCK_SIZE, ScaleFactor >::setCoefficients ( const float (&)  coeff[N])

Reset the coefficients.

Parameters
coeffarray containing the coefficients
template<typename T , int N, int BLOCK_SIZE, signed int ScaleFactor = 1>
void modm::filter::Fir< T, N, BLOCK_SIZE, ScaleFactor >::update ( )

Calculates g[0].


The documentation for this class was generated from the following file: