firfarrow_crcf
Variants: firfarrow_crcf, firfarrow_rrrf
Finite impulse response (FIR) Farrow filter for timing delay
Public Functions
firfarrow_crcf | firfarrow_crcf_create( |
int | firfarrow_crcf_destroy( |
int | firfarrow_crcf_print( |
int | firfarrow_crcf_reset( |
int | firfarrow_crcf_push( |
int | firfarrow_crcf_set_delay( |
int | firfarrow_crcf_execute( |
int | firfarrow_crcf_execute_block( |
unsigned int | firfarrow_crcf_get_length( |
int | firfarrow_crcf_get_coefficients( |
int | firfarrow_crcf_freqresponse( |
float | firfarrow_crcf_groupdelay( |
Interfaces
firfarrow_crcf firfarrow_crcf_create(
Create firfarrow object
- _h_len : filter length, 2 <= _h_len
- _p : polynomial order, 1 <= _p
- _fc : filter cutoff frequency, 0 <= _fc <= 0.5
- _as : stopband attenuation [dB], 0 < _as
int firfarrow_crcf_destroy(
Destroy firfarrow object, freeing all internal memory
int firfarrow_crcf_print(
Print firfarrow object's internal properties
int firfarrow_crcf_reset(
Reset firfarrow object's internal state
int firfarrow_crcf_push(
Push sample into firfarrow object
- _q : firfarrow object
- _x : input sample
int firfarrow_crcf_set_delay(
Set fractional delay of firfarrow object
- _q : firfarrow object
- _mu : fractional sample delay, -1 <= _mu <= 1
int firfarrow_crcf_execute(
Execute firfarrow internal dot product
- _q : firfarrow object
- _y : output sample pointer
int firfarrow_crcf_execute_block(
Execute firfarrow filter on block of samples. In-place operation is permitted (the input and output arrays may share the same pointer)
- _q : firfarrow object
- _x : input array, shape: (_n, 1)
- _n : input, output array size
- _y : output array, shape: (_n, 1)
unsigned int firfarrow_crcf_get_length(
Get length of firfarrow object (number of filter taps)
int firfarrow_crcf_get_coefficients(
Get coefficients of firfarrow object
- _q : firfarrow object
- _h : output coefficients pointer, shape: (_h_len, 1)
int firfarrow_crcf_freqresponse(
Compute complex frequency response
- _q : filter object
- _fc : frequency
- _H : output frequency response
float firfarrow_crcf_groupdelay(
Compute group delay [samples]
- _q : filter object
- _fc : frequency