DSPLIB User Guide
DSPLIB_cascadeBiquad.cpp File Reference

Go to the source code of this file.

Functions

int32_t DSPLIB_cascadeBiquad_getHandleSize (DSPLIB_cascadeBiquad_InitArgs *pKerInitArgs)
 This is a query function to calculate the size of internal handle. More...
 
DSPLIB_STATUS DSPLIB_cascadeBiquad_init_checkParams (DSPLIB_kernelHandle handle, const DSPLIB_bufParams2D_t *bufParamsIn, const DSPLIB_bufParams1D_t *bufParamsFilterCoeff, const DSPLIB_bufParams2D_t *bufParamsFilterVar, const DSPLIB_bufParams2D_t *bufParamsOut, const DSPLIB_cascadeBiquad_InitArgs *pKerInitArgs)
 This function checks the validity of the parameters passed to DSPLIB_cascadeBiquad_init function. This function is called with the same parameters as the DSPLIB_cascadeBiquad_init, and this function must be called before the DSPLIB_cascadeBiquad_init is called. More...
 
DSPLIB_STATUS DSPLIB_cascadeBiquad_exec_checkParams (DSPLIB_kernelHandle handle, const void *restrict pIn, const void *restrict pFilterCoeff, const void *restrict pFilterVar, const void *restrict pOut)
 This function checks the validity of the parameters passed to DSPLIB_cascadeBiquad_exec function. This function is called with the same parameters as the DSPLIB_cascadeBiquad_exec, and this function must be called before the DSPLIB_cascadeBiquad_exec is called. More...
 
template<typename dataType >
static dataType fast_recip (dataType x)
 
int32_t DSPLIB_cascadeBiquad_get_coefficientsBufferSize (uint32_t numStages)
 This is a query function to calculate the sizes of coefficient buffer needed based on the number of stages. More...
 
template<typename dataType >
dataType DSPLIB_cascadeBiquad_store_coefficients (uint32_t numStages, void *restrict pFilterCoeff)
 
DSPLIB_STATUS DSPLIB_cascadeBiquad_init (DSPLIB_kernelHandle handle, DSPLIB_bufParams2D_t *bufParamsIn, DSPLIB_bufParams1D_t *bufParamsFilterCoeff, DSPLIB_bufParams2D_t *bufParamsFilterVar, DSPLIB_bufParams2D_t *bufParamsOut, DSPLIB_cascadeBiquad_InitArgs *pKerInitArgs)
 This function should be called before the DSPLIB_cascadeBiquad_exec function is called. This function takes care of any one-time operations such as setting up the configuration of required hardware resources such as the MMA accelerator and the streaming engine. The results of these operations are stored in the handle. More...
 
DSPLIB_STATUS DSPLIB_cascadeBiquad_exec (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pFilterCoeff, void *restrict pFilterVar, void *restrict pOut)
 This function is the main kernel compute function. More...
 

Function Documentation

◆ fast_recip()

template<typename dataType >
static dataType fast_recip ( dataType  x)
inlinestatic

Definition at line 89 of file DSPLIB_cascadeBiquad.cpp.

◆ DSPLIB_cascadeBiquad_store_coefficients()

template<typename dataType >
dataType DSPLIB_cascadeBiquad_store_coefficients ( uint32_t  numStages,
void *restrict  pFilterCoeff 
)

Definition at line 115 of file DSPLIB_cascadeBiquad.cpp.