LIBML  Version 3.2.4
LIBML DSP Software Library
Functions
FIR_Interpolate
Collaboration diagram for FIR_Interpolate:

Functions

tpt_status tpt_fir_interpolate_init_f32 (tpt_fir_interpolate_f32_t *aFilter, uint8_t L, uint16_t numTaps, f32_t *pCoeffs, f32_t *pState, uint32_t aCount)
 Initialization function for the floating-point FIR interpolator. More...
 
tpt_status tpt_fir_interpolate_init_q15 (tpt_fir_interpolate_q15_t *aFilter, uint8_t L, uint16_t numTaps, q15_t *pCoeffs, q15_t *pState, uint32_t aCount)
 Initialization function for the Q15 FIR interpolator. More...
 
tpt_status tpt_fir_interpolate_init_q31 (tpt_fir_interpolate_q31_t *aFilter, uint8_t L, uint16_t numTaps, q31_t *pCoeffs, q31_t *pState, uint32_t aCount)
 Initialization function for the Q31 FIR interpolator. More...
 

Detailed Description

Function Documentation

◆ tpt_fir_interpolate_init_f32()

tpt_status tpt_fir_interpolate_init_f32 ( tpt_fir_interpolate_f32_t aFilter,
uint8_t  L,
uint16_t  numTaps,
f32_t pCoeffs,
f32_t pState,
uint32_t  aCount 
)

Initialization function for the floating-point FIR interpolator.

Parameters
[in,out]aFilterpoints to an instance of the floating-point FIR interpolator structure
[in]Lupsample factor
[in]numTapsnumber of filter coefficients in the filter
[in]pCoeffspoints to the filter coefficient buffer
[in]pStatepoints to the state buffer
[in]aCountnumber of input samples to process per call
Returns
execution status TPT_MATH_SUCCESS : Operation successful TPT_MATH_ARGUMENT_ERROR : filter length numTaps is not a multiple of the interpolation factor L
Details
pCoeffs points to the array of filter coefficients stored in time reversed order: pre> {b[numTaps-1], b[numTaps-2], b[numTaps-2], ..., b[1], b[0]} /pre>
The length of the filter numTaps must be a multiple of the interpolation factor L.
pState points to the array of state variables. pState is of length (numTaps/L)+blockSize-1 words where blockSize is the number of input samples processed by each call to tpt_fir_interpolate_f32().

◆ tpt_fir_interpolate_init_q15()

tpt_status tpt_fir_interpolate_init_q15 ( tpt_fir_interpolate_q15_t aFilter,
uint8_t  L,
uint16_t  numTaps,
q15_t pCoeffs,
q15_t pState,
uint32_t  aCount 
)

Initialization function for the Q15 FIR interpolator.

Parameters
[in,out]aFilterpoints to an instance of the Q15 FIR interpolator structure
[in]Lupsample factor
[in]numTapsnumber of filter coefficients in the filter
[in]pCoeffspoints to the filter coefficient buffer
[in]pStatepoints to the state buffer
[in]aCountnumber of input samples to process per call
Returns
execution status TPT_MATH_SUCCESS : Operation successful TPT_MATH_ARGUMENT_ERROR : filter length numTaps is not a multiple of the interpolation factor L
Details
pCoeffs points to the array of filter coefficients stored in time reversed order: pre> {b[numTaps-1], b[numTaps-2], b[numTaps-2], ..., b[1], b[0]} /pre>
The length of the filter numTaps must be a multiple of the interpolation factor L.
pState points to the array of state variables. pState is of length (numTaps/L)+blockSize-1 words where blockSize is the number of input samples processed by each call to tpt_fir_interpolate_q15().

◆ tpt_fir_interpolate_init_q31()

tpt_status tpt_fir_interpolate_init_q31 ( tpt_fir_interpolate_q31_t aFilter,
uint8_t  L,
uint16_t  numTaps,
q31_t pCoeffs,
q31_t pState,
uint32_t  aCount 
)

Initialization function for the Q31 FIR interpolator.

Parameters
[in,out]aFilterpoints to an instance of the Q31 FIR interpolator structure
[in]Lupsample factor
[in]numTapsnumber of filter coefficients in the filter
[in]pCoeffspoints to the filter coefficient buffer
[in]pStatepoints to the state buffer
[in]aCountnumber of input samples to process per call
Returns
execution status TPT_MATH_SUCCESS : Operation successful TPT_MATH_ARGUMENT_ERROR : filter length numTaps is not a multiple of the interpolation factor L
Details
pCoeffs points to the array of filter coefficients stored in time reversed order: pre> {b[numTaps-1], b[numTaps-2], b[numTaps-2], ..., b[1], b[0]} /pre>
The length of the filter numTaps must be a multiple of the interpolation factor L.
pState points to the array of state variables. pState is of length (numTaps/L)+blockSize-1 words where blockSize is the number of input samples processed by each call to tpt_fir_interpolate_q31().