81 #ifndef DSPLIB_CASCADEBIQUAD_H_ 82 #define DSPLIB_CASCADEBIQUAD_H_ 84 #include "../../common/DSPLIB_types.h" 235 void *restrict pFilterCoeff,
236 void *restrict pFilterVar,
237 void *restrict pOut);
258 const void *restrict pIn,
259 const void *restrict pFilterCoeff,
260 const void *restrict pFilterVar,
261 const void *restrict pOut);
285 uint64_t *archCycles,
286 uint64_t *estCycles);
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...
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.
A structure for a 1 dimensional buffer descriptor.
DSPLIB_STATUS_NAME
The enumeration of all status codes.
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...
Structure containing the parameters to initialize the kernel.
int8_t funcStyle
Variant of the function refer to DSPLIB_FUNCTION_STYLE.
void DSPLIB_cascadeBiquad_perfEst(DSPLIB_kernelHandle handle, const DSPLIB_bufParams2D_t *bufParamsIn, const DSPLIB_bufParams1D_t *bufParamsFilterCoeff, const DSPLIB_bufParams2D_t *bufParamsFilterVar, const DSPLIB_bufParams2D_t *bufParamsOut, uint64_t *archCycles, uint64_t *estCycles)
This is a utility function that gives an estimate of the cycles consumed for the kernel execution...
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 s...
void * DSPLIB_kernelHandle
Handle type for DSPLIB operations.
A structure for a 2 dimensional buffer descriptor.
uint32_t dataSize
Size of input data.
uint32_t numChannels
number of channels
int32_t DSPLIB_cascadeBiquad_getHandleSize(DSPLIB_cascadeBiquad_InitArgs *pKerInitArgs)
This is a query function to calculate the size of internal handle.
uint32_t numStages
Size of batch in terms of number of channels of input data.
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.