LIBDSP Version 4.1.9
LIBDSP Software Library
Loading...
Searching...
No Matches
FIR_decimate
Collaboration diagram for FIR_decimate:

Functions

void tpt_fir_decimate_f64 (f64_t *pDst, const tpt_fir_decimate_f64_t *S, const f64_t *pSrc, uint32_t blockSize)
 Processing function for floating-point FIR decimator.
tpt_status tpt_fir_decimate_init_f64 (tpt_fir_decimate_f64_t *S, uint16_t numTaps, uint8_t M, const f64_t *pCoeffs, f64_t *pState, uint32_t blockSize)
 Initialization function for the floating-point FIR decimator.

Detailed Description

Function Documentation

◆ tpt_fir_decimate_f64()

void tpt_fir_decimate_f64 ( f64_t * pDst,
const tpt_fir_decimate_f64_t * S,
const f64_t * pSrc,
uint32_t blockSize )

Processing function for floating-point FIR decimator.

Parameters
[out]pDstpoints to the block of output data
[in]Spoints to an instance of the floating-point FIR decimator structure
[in]pSrcpoints to the block of input data
[in]blockSizenumber of input samples to process
Returns
none

◆ tpt_fir_decimate_init_f64()

tpt_status tpt_fir_decimate_init_f64 ( tpt_fir_decimate_f64_t * S,
uint16_t numTaps,
uint8_t M,
const f64_t * pCoeffs,
f64_t * pState,
uint32_t blockSize )

Initialization function for the floating-point FIR decimator.

Parameters
[in,out]Spoints to an instance of the floating-point FIR decimator structure
[in]numTapsnumber of coefficients in the filter
[in]Mdecimation factor
[in]pCoeffspoints to the filter coefficients
[in]pStatepoints to the state buffer
[in]blockSizenumber of input samples to process per call
Returns
execution status
Details
pCoeffs points to the array of filter coefficients stored in time reversed order:
 {b[numTaps-1], b[numTaps-2], b[N-2], ..., b[1],
                 b[0]} 
pState points to the array of state variables. pState is of length numTaps+blockSize-1 words where blockSize is the number of input samples passed to tpt_fir_decimate_f64(). M is the decimation factor.