firfarrow_rrrf
Variants: firfarrow_crcf, firfarrow_rrrf
Finite impulse response (FIR) Farrow filter for timing delay
Public Functions
firfarrow_rrrf | firfarrow_rrrf_create( |
int | firfarrow_rrrf_destroy( |
int | firfarrow_rrrf_print( |
int | firfarrow_rrrf_reset( |
int | firfarrow_rrrf_push( |
int | firfarrow_rrrf_set_delay( |
int | firfarrow_rrrf_execute( |
int | firfarrow_rrrf_execute_block( |
unsigned int | firfarrow_rrrf_get_length( |
int | firfarrow_rrrf_get_coefficients( |
int | firfarrow_rrrf_freqresponse( |
float | firfarrow_rrrf_groupdelay( |
Interfaces
firfarrow_rrrf firfarrow_rrrf_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_rrrf_destroy(
Destroy firfarrow object, freeing all internal memory
int firfarrow_rrrf_print(
Print firfarrow object's internal properties
int firfarrow_rrrf_reset(
Reset firfarrow object's internal state
int firfarrow_rrrf_push(
Push sample into firfarrow object
- _q : firfarrow object
- _x : input sample
int firfarrow_rrrf_set_delay(
Set fractional delay of firfarrow object
- _q : firfarrow object
- _mu : fractional sample delay, -1 <= _mu <= 1
int firfarrow_rrrf_execute(
Execute firfarrow internal dot product
- _q : firfarrow object
- _y : output sample pointer
int firfarrow_rrrf_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_rrrf_get_length(
Get length of firfarrow object (number of filter taps)
int firfarrow_rrrf_get_coefficients(
Get coefficients of firfarrow object
- _q : firfarrow object
- _h : output coefficients pointer, shape: (_h_len, 1)
int firfarrow_rrrf_freqresponse(
Compute complex frequency response
- _q : filter object
- _fc : frequency
- _H : output frequency response
float firfarrow_rrrf_groupdelay(
Compute group delay [samples]
- _q : filter object
- _fc : frequency