firdecim_crcf
Variants: firdecim_cccf, firdecim_crcf, firdecim_rrrf
Finite impulse response (FIR) decimator
Public Functions
firdecim_crcf | firdecim_crcf_create( |
firdecim_crcf | firdecim_crcf_create_kaiser( |
firdecim_crcf | firdecim_crcf_create_prototype( |
firdecim_crcf | firdecim_crcf_copy( |
int | firdecim_crcf_destroy( |
int | firdecim_crcf_print( |
int | firdecim_crcf_reset( |
unsigned int | firdecim_crcf_get_decim_rate( |
int | firdecim_crcf_set_scale( |
int | firdecim_crcf_get_scale( |
int | firdecim_crcf_freqresp( |
int | firdecim_crcf_execute( |
int | firdecim_crcf_execute_block( |
Interfaces
firdecim_crcf firdecim_crcf_create(
Create decimator from external coefficients
- _M : decimation factor, 2 <= _M
- _h : filter coefficients, shape: (_h_len, 1)
- _h_len : filter length, _M <= _h_len
firdecim_crcf firdecim_crcf_create_kaiser(
Create decimator from filter prototype prototype (Kaiser-Bessel windowed-sinc function)
- _M : decimation factor, 2 <= _M
- _m : filter delay [symbols], 1 <= _m
- _as : stop-band attenuation [dB], 0 <= _as
firdecim_crcf firdecim_crcf_create_prototype(
Create decimator object from filter prototype
- _type : filter type (e.g. LIQUID_FIRFILT_RCOS)
- _M : interpolation factor, 1 < _M
- _m : filter delay (symbols), 0 < _m
- _beta : excess bandwidth factor, 0 <= _beta <= 1
- _dt : fractional sample delay, -1 <= _dt <= 1
firdecim_crcf firdecim_crcf_copy(
Copy object including all internal objects and state
int firdecim_crcf_destroy(
Destroy decimator object, freeing all internal memory
int firdecim_crcf_print(
Print decimator object properties to stdout
int firdecim_crcf_reset(
Reset decimator object internal state
unsigned int firdecim_crcf_get_decim_rate(
Get decimation rate
int firdecim_crcf_set_scale(
Set output scaling for decimator
- _q : decimator object
- _scale : scaling factor to apply to each output sample
int firdecim_crcf_get_scale(
Get output scaling for decimator
- _q : decimator object
- _scale : scaling factor to apply to each output sample
int firdecim_crcf_freqresp(
Compute complex frequency response \(H\) of decimator on prototype filter coefficients at a specific frequency \(f_c\)
- _q : decimator object
- _fc : normalized frequency for evaluation
- _H : pointer to output complex frequency response
int firdecim_crcf_execute(
Execute decimator on _M input samples
- _q : decimator object
- _x : input samples, shape: (_M, 1)
- _y : output sample pointer
int firdecim_crcf_execute_block(
Execute decimator on block of _n*_M input samples
- _q : decimator object
- _x : input array, shape: (_n*_M, 1)
- _n : number of _output_ samples
- _y : output array, [_size: _n x 1]