firdecim_rrrf
Variants: firdecim_cccf, firdecim_crcf, firdecim_rrrf
Finite impulse response (FIR) decimator
Public Functions
firdecim_rrrf | firdecim_rrrf_create( |
firdecim_rrrf | firdecim_rrrf_create_kaiser( |
firdecim_rrrf | firdecim_rrrf_create_prototype( |
firdecim_rrrf | firdecim_rrrf_copy( |
int | firdecim_rrrf_destroy( |
int | firdecim_rrrf_print( |
int | firdecim_rrrf_reset( |
unsigned int | firdecim_rrrf_get_decim_rate( |
int | firdecim_rrrf_set_scale( |
int | firdecim_rrrf_get_scale( |
int | firdecim_rrrf_freqresp( |
int | firdecim_rrrf_execute( |
int | firdecim_rrrf_execute_block( |
Interfaces
firdecim_rrrf firdecim_rrrf_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_rrrf firdecim_rrrf_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_rrrf firdecim_rrrf_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_rrrf firdecim_rrrf_copy(
Copy object including all internal objects and state
int firdecim_rrrf_destroy(
Destroy decimator object, freeing all internal memory
int firdecim_rrrf_print(
Print decimator object properties to stdout
int firdecim_rrrf_reset(
Reset decimator object internal state
unsigned int firdecim_rrrf_get_decim_rate(
Get decimation rate
int firdecim_rrrf_set_scale(
Set output scaling for decimator
- _q : decimator object
- _scale : scaling factor to apply to each output sample
int firdecim_rrrf_get_scale(
Get output scaling for decimator
- _q : decimator object
- _scale : scaling factor to apply to each output sample
int firdecim_rrrf_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_rrrf_execute(
Execute decimator on _M input samples
- _q : decimator object
- _x : input samples, shape: (_M, 1)
- _y : output sample pointer
int firdecim_rrrf_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]