![]() |
MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
The MCUXpresso SDK provides a peripheral FSP driver for the SYSCON module of MCUXpresso SDK devices.
Example use of FSP API.
Modules | |
| Correlation | |
| Power | |
| Sum | |
Data Structures | |
| struct | fsp_matrix_instance_t |
| Instance structure for the matrix. More... | |
| struct | fsp_mat_op_instance_t |
| Instance structure for the matrix operation. More... | |
| struct | fsp_fir_instance_t |
| Instance structure for the FIR filter. More... | |
Macros | |
| #define | MAT_OP_CONFIG(inv_stop, lu_stop, mat_k, mat_n, mat_m, o_format, i_format, op_mode) |
| Macros to config the FSP Matrix operation unit. | |
| #define | TE_CONFIG(te_point, te_scale, o_format, i_format, io_mode, type) |
| Macros to config the FSP transfer engine. | |
| #define | SE_CONFIG(se_point, o_format, i_format, pwr_en, sum_en, max_idx_en, min_idx_en, max_sel, min_sel) |
| Macros to config the FSP statistic engine module. | |
| #define | CORR_CONFIG(corr_y_len, corr_x_len, o_format, i_format) |
| Macros to config the FSP Correlation module. | |
| #define | FIR_CONFIG(buf_clr_en, num_taps, p_coeffs) |
| Macros to config the FSP FIR filter module. | |
Typedefs | |
| typedef int32_t | q31_t |
| 32-bit fractional data type in 1.31 format. | |
| typedef float | float32_t |
| 32-bit floating-point type definition. | |
Functions | |
| void | FSP_Init (FSP_Type *base) |
| FSP configuration. More... | |
| void | FSP_Deinit (FSP_Type *base) |
| Disables the FSP and gates the FSP clock. More... | |
| static void | FSP_EnableInterrupts (FSP_Type *base, uint32_t mask) |
| Enables the FSP interrupt. More... | |
| static void | FSP_DisableInterrupts (FSP_Type *base, uint32_t mask) |
| Disables the FSP interrupt. More... | |
| static void | FSP_ClearStatusFlags (FSP_Type *base, uint32_t mask) |
| Clears status flags with the provided mask. More... | |
| static uint32_t | FSP_GetStatusFlags (FSP_Type *base) |
| Get FSP status flags. More... | |
| static uint32_t | FSP_GetBusyStatusFlags (FSP_Type *base) |
| Get FSP busy status flags. More... | |
| static float32_t | FSP_SinF32 (FSP_Type *base, float32_t x) |
| Cordic. More... | |
| static float32_t | FSP_SinQ31 (FSP_Type *base, q31_t x) |
| Fast approximation to the trigonometric sine function for Q31 data. More... | |
| static float32_t | FSP_CosF32 (FSP_Type *base, float32_t x) |
| Fast approximation to the trigonometric sine and cosine function for floating-point data. More... | |
| static q31_t | FSP_CosQ31 (FSP_Type *base, q31_t x) |
| Fast approximation to the trigonometric sine function for Q31 data. More... | |
| static float32_t | FSP_LnF32 (FSP_Type *base, float32_t x) |
| Floating-point log function. More... | |
| static q31_t | FSP_LnQ31 (FSP_Type *base, q31_t x) |
| Q31 log function. More... | |
| static float32_t | FSP_SqrtF32 (FSP_Type *base, float32_t x) |
| Floating-point root function. More... | |
| static q31_t | FSP_SqrtQ31 (FSP_Type *base, q31_t x) |
| Q31 square root function. More... | |
| static void | FSP_MatOperateStart (FSP_Type *base, const fsp_mat_op_instance_t *ins, const void *p_dat_mat_a, const void *p_dat_mat_b, const void *p_dat_dst) |
| Matrix Operation Unit & Transform Engine. More... | |
| void | FSP_MatInit (fsp_matrix_instance_t *S, uint16_t n_rows, uint16_t n_columns, void *p_data) |
| Matrix initialization. More... | |
| void | FSP_MatInverseF32 (FSP_Type *base, const fsp_matrix_instance_t *p_src, const fsp_matrix_instance_t *p_dst) |
| Floating-point matrix inverse. More... | |
| void | FSP_MatInverseQ31 (FSP_Type *base, const fsp_matrix_instance_t *p_src, const fsp_matrix_instance_t *p_dst) |
| q31 matrix inverse. More... | |
| void | FSP_MatMultF32 (FSP_Type *base, const fsp_matrix_instance_t *p_src_a, const fsp_matrix_instance_t *p_src_b, const fsp_matrix_instance_t *p_dst) |
| Floating-point matrix multiplication. More... | |
| void | FSP_MatMultQ31 (FSP_Type *base, const fsp_matrix_instance_t *p_src_a, const fsp_matrix_instance_t *p_src_b, const fsp_matrix_instance_t *p_dst) |
| q31 matrix multiplication More... | |
| void | FSP_MatDotMultF32 (FSP_Type *base, const fsp_matrix_instance_t *p_src_a, const fsp_matrix_instance_t *p_src_b, const fsp_matrix_instance_t *p_dst) |
| Floating-point matrix dot multiplication. More... | |
| void | FSP_MatDotMultQ31 (FSP_Type *base, const fsp_matrix_instance_t *p_src_a, const fsp_matrix_instance_t *p_src_b, const fsp_matrix_instance_t *p_dst) |
| q31 matrix dot multiplication More... | |
| void | FSP_MatTransF32 (FSP_Type *base, const fsp_matrix_instance_t *p_src, const fsp_matrix_instance_t *p_dst) |
| Floating-point matrix transpose. More... | |
| void | FSP_MatScaleF32 (FSP_Type *base, const fsp_matrix_instance_t *p_src_a, float32_t scale_a, const fsp_matrix_instance_t *p_src_b, float32_t scale_b, const fsp_matrix_instance_t *p_dst) |
| Floating-point matrix scaling(a*A + b*B). More... | |
| void | FSP_MatScaleQ31 (FSP_Type *base, const fsp_matrix_instance_t *p_src_a, float32_t scale_a, const fsp_matrix_instance_t *p_src_b, float32_t scale_b, const fsp_matrix_instance_t *p_dst) |
| q31 matrix scaling. More... | |
| void | FSP_MatAddF32 (FSP_Type *base, const fsp_matrix_instance_t *p_src_a, const fsp_matrix_instance_t *p_src_b, const fsp_matrix_instance_t *p_dst) |
| Floating-point matrix addition. More... | |
| void | FSP_MatAddQ31 (FSP_Type *base, const fsp_matrix_instance_t *p_src_a, const fsp_matrix_instance_t *p_src_b, const fsp_matrix_instance_t *p_dst) |
| q31 matrix addition. More... | |
| void | FSP_MatSubF32 (FSP_Type *base, const fsp_matrix_instance_t *p_src_a, const fsp_matrix_instance_t *p_src_b, const fsp_matrix_instance_t *p_dst) |
| Floating-point matrix subtraction. More... | |
| void | FSP_MatSubQ31 (FSP_Type *base, const fsp_matrix_instance_t *p_src_a, const fsp_matrix_instance_t *p_src_b, const fsp_matrix_instance_t *p_dst) |
| q31 matrix subtraction. More... | |
| static void | FSP_TeStart (FSP_Type *base, uint32_t te_cfg, const void *p_src, const void *p_dst) |
| Transfer engine start. More... | |
| void | FSP_TeIDCTPreProcess (FSP_Type *base, float32_t *p_data) |
| Only for IDCT: Convert the input data. More... | |
| void | FSP_TePostProcess (FSP_Type *base, const fsp_te_instance_t *S, fsp_te_io_mode_t io_mode, fsp_te_mode_t te_mode, float32_t *p_data) |
| For FFT/IFFT/CFFT: Make the output of FSP match the ARM's For DCT/IDCT: Convert the output from DCT-II to DCT-IV. More... | |
| void | FSP_RfftF32 (FSP_Type *base, const fsp_te_instance_t *S, float32_t *p_src, float32_t *p_dst) |
| Processing function for the floating-point real FFT. More... | |
| void | FSP_RifftF32 (FSP_Type *base, const fsp_te_instance_t *S, float32_t *p_src, float32_t *p_dst) |
| Processing function for the floating-point real IFFT. More... | |
| void | FSP_RfftQ31 (FSP_Type *base, const fsp_te_instance_t *S, q31_t *p_src, q31_t *p_dst) |
| Processing function for the q31 real FFT. More... | |
| void | FSP_RifftQ31 (FSP_Type *base, const fsp_te_instance_t *S, q31_t *p_src, q31_t *p_dst) |
| Processing function for the q31 real IFFT. More... | |
| void | FSP_CfftF32 (FSP_Type *base, const fsp_te_instance_t *S, float32_t *p_src, float32_t *p_dst, uint8_t ifft_flag) |
| Processing function for the floating-point complex FFT/IFFT. More... | |
| void | FSP_CfftQ31 (FSP_Type *base, const fsp_te_instance_t *S, q31_t *p_src, q31_t *p_dst, uint8_t ifft_flag) |
| Processing function for the q31 complex FFT/IFFT. More... | |
| void | FSP_DctF32 (FSP_Type *base, const fsp_te_instance_t *S, float32_t *p_src, float32_t *p_dst, uint8_t idct_flag) |
| Processing function for the floating-point DCT/IDCT. More... | |
| void | FSP_DctQ31 (FSP_Type *base, const fsp_te_instance_t *S, q31_t *p_src, q31_t *p_dst, uint8_t idct_flag) |
| Processing function for the q31 DCT/IDCT. More... | |
| static void | FSP_SeStart (FSP_Type *base, uint32_t se_cfg, const void *p_src) |
| Statistic engine start. More... | |
| void | FSP_MaxMinF32 (FSP_Type *base, float32_t *p_src, uint32_t block_size, float32_t *p_max, float32_t *p_min) |
| Get Maximum and Minimum values of a floating-point vector. More... | |
| static void | FSP_MaxMinIntF32 (FSP_Type *base, float32_t *p_src, uint32_t block_size) |
| Calculate Maximum and Minimum values of a floating-point vector. More... | |
| void | FSP_GetMaxMinIntResultF32 (FSP_Type *base, float32_t *p_src, float32_t *p_max, float32_t *p_min) |
| Get the Maximum and Minimum values of a floating-point vector. More... | |
| void | FSP_MaxMinQ31 (FSP_Type *base, q31_t *p_src, uint32_t block_size, q31_t *p_max, q31_t *p_min) |
| Get Maximum and Minimum values of a q31 vector. More... | |
| static void | FSP_MaxMinIntQ31 (FSP_Type *base, q31_t *p_src, uint32_t block_size) |
| Calculate Maximum and Minimum values of a q31 vector. More... | |
| void | FSP_GetMaxMinIntResultQ31 (FSP_Type *base, q31_t *p_src, q31_t *p_max, q31_t *p_min) |
| Get the Maximum and Minimum values of a q31 vector vector. More... | |
| void | FSP_MaxF32 (FSP_Type *base, float32_t *p_src, uint32_t block_size, float32_t *p_result, uint32_t *p_index) |
| Maximum value of a floating-point vector. More... | |
| static void | FSP_MaxIntF32 (FSP_Type *base, float32_t *p_src, uint32_t block_size) |
| Calculate Maximum value of a floating-point vector. More... | |
| void | FSP_GetMaxIntResultF32 (FSP_Type *base, float32_t *p_src, float32_t *p_result, uint32_t *p_index) |
| Get the Maximum value of a floating-point vector. More... | |
| void | FSP_MaxQ31 (FSP_Type *base, q31_t *p_src, uint32_t block_size, q31_t *p_result, uint32_t *p_index) |
| Maximum value of a q31 vector. More... | |
| static void | FSP_MaxIntQ31 (FSP_Type *base, q31_t *p_src, uint32_t block_size) |
| Calculate Maximum value of a q31 vector. More... | |
| void | FSP_GetMaxIntResultQ31 (FSP_Type *base, q31_t *p_src, q31_t *p_result, uint32_t *p_index) |
| Get the Maximum value of a q31 vector. More... | |
| void | FSP_MinF32 (FSP_Type *base, float32_t *p_src, uint32_t block_size, float32_t *p_result, uint32_t *p_index) |
| Minimum value of a floating-point vector. More... | |
| static void | FSP_MinIntF32 (FSP_Type *base, float32_t *p_src, uint32_t block_size) |
| Calculate Minimum value of a floating-point vector. More... | |
| void | FSP_GetMinIntResultF32 (FSP_Type *base, float32_t *p_src, float32_t *p_result, uint32_t *p_index) |
| Get the Minimum value of a floating-point vector. More... | |
| void | FSP_MinQ31 (FSP_Type *base, q31_t *p_src, uint32_t block_size, q31_t *p_result, uint32_t *p_index) |
| Minimum value of a q31 vector. More... | |
| static void | FSP_MinIntQ31 (FSP_Type *base, q31_t *p_src, uint32_t block_size) |
| Calculate Minimum value of a q31 vector. More... | |
| void | FSP_GetMinIntResultQ31 (FSP_Type *base, q31_t *p_src, q31_t *p_result, uint32_t *p_index) |
| Get the Minimum value of a q31 vector. More... | |
| static void | FSP_FirBufferClear (FSP_Type *base, uint32_t ch_idx) |
| Clear FIR buffer. More... | |
| static void | FSP_FirBufferClearAll (FSP_Type *base) |
| Clear All FIR buffer. More... | |
| void | FSP_FirF32 (FSP_Type *base, const fsp_fir_instance_t *S, float32_t *p_src, float32_t *p_dst, uint32_t block_size) |
| FIR (Finite Impulse Response) filter function of floating-point sequences. More... | |
| void | FSP_FirQ31 (FSP_Type *base, const fsp_fir_instance_t *S, q31_t *p_src, q31_t *p_dst, uint32_t block_size) |
| FIR (Finite Impulse Response) filter function of q31 sequences. More... | |
Driver version | |
| #define | FSL_FSP_DRIVER_VERSION (MAKE_VERSION(2, 0, 0)) |
| Fsp driver version 2.0.0. More... | |
| struct fsp_mat_op_instance_t |
Data Fields | |
| uint32_t | mat_op_cfg |
| #define FSL_FSP_DRIVER_VERSION (MAKE_VERSION(2, 0, 0)) |
| enum fsp_mou_din_fp_sel_t |
| enum fsp_te_dout_fp_sel_t |
| enum fsp_te_din_fp_sel_t |
| enum fsp_te_pts_t |
| enum fsp_te_io_mode_t |
| enum fsp_te_mode_t |
| enum fsp_se_dout_fp_sel_t |
| enum fsp_se_din_fp_sel_t |
| enum fsp_cor_din_fp_sel_t |
| enum fir_dout_fp_sel_t |
| enum fir_din_fp_sel_t |
| void FSP_Init | ( | FSP_Type * | base | ) |
| base | FSP peripheral base address.s |
| void FSP_Deinit | ( | FSP_Type * | base | ) |
| base | pointer to FLEXIO_UART_Type structure |
|
inlinestatic |
This function enables the FSP interrupt.
| base | FSP peripheral base address. |
| mask | interrupt source. |
|
inlinestatic |
This function disables the FSP interrupt.
| base | FSP peripheral base address. |
| mask | interrupt source. |
|
inlinestatic |
| base | FSP peripheral base address. |
| mask | The status flags to be cleared |
| None |
|
inlinestatic |
| base | FSP peripheral base address. |
|
inlinestatic |
| base | FSP peripheral base address. |
Fast approximation to the trigonometric sine and cosine function for floating-point data.
| base | FSP peripheral base address |
| x | Input value in radians/pi. |
| base | FSP peripheral base address |
| x | Input value in radians/pi. |
| base | FSP peripheral base address |
| x | Input value in radians/pi. |
| base | FSP peripheral base address |
| x | Input value in radians/pi. |
The Q31 input value is in the range [0 +0.9999] and is mapped to a radian value in the range [0 2*pi).
| base | FSP peripheral base address |
| x | input value, the range of the input value is [0 +1) or 0x00000000 to 0x7FFFFFFF. |
| base | FSP peripheral base address |
| x | input value, the range of the input value is [0 +1) or 0x00000000 to 0x7FFFFFFF. |
| base | FSP peripheral base address |
| x | input value, the range of the input value is [0 +1) or 0x00000000 to 0x7FFFFFFF. |
| base | FSP peripheral base address |
| x | input value, the range of the input value is [0 +1) or 0x00000000 to 0x7FFFFFFF. |
|
inlinestatic |
Processing function for the Matrix operation unit. Matrix operation start.
| base | FSP peripheral base address |
| ins | points to the matrix operation structure. |
| *p_src_mat_a | points to the input matrix A. |
| *p_src_mat_b | points to the input matrix B. |
| *p_dst | points to output matrix structure. |
| void FSP_MatInit | ( | fsp_matrix_instance_t * | S, |
| uint16_t | n_rows, | ||
| uint16_t | n_columns, | ||
| void * | p_data | ||
| ) |
| *S | points to an instance of the matrix structure. |
| n_rows | number of rows in the matrix. |
| n_columns | number of columns in the matrix. |
| *p_data | points to the matrix data array. |
| void FSP_MatInverseF32 | ( | FSP_Type * | base, |
| const fsp_matrix_instance_t * | p_src, | ||
| const fsp_matrix_instance_t * | p_dst | ||
| ) |
| base | FSP peripheral base address |
| *p_src | points to input matrix structure |
| *p_dst | points to output matrix structure |
| void FSP_MatInverseQ31 | ( | FSP_Type * | base, |
| const fsp_matrix_instance_t * | p_src, | ||
| const fsp_matrix_instance_t * | p_dst | ||
| ) |
| base | FSP peripheral base address |
| *p_src | points to input matrix structure |
| *p_dst | points to output matrix structure |
| void FSP_MatMultF32 | ( | FSP_Type * | base, |
| const fsp_matrix_instance_t * | p_src_a, | ||
| const fsp_matrix_instance_t * | p_src_b, | ||
| const fsp_matrix_instance_t * | p_dst | ||
| ) |
| base | FSP peripheral base address |
| *p_src_a | points to the first input matrix structure |
| *p_src_b | points to the second input matrix structure |
| *p_dst | points to output matrix structure |
| void FSP_MatMultQ31 | ( | FSP_Type * | base, |
| const fsp_matrix_instance_t * | p_src_a, | ||
| const fsp_matrix_instance_t * | p_src_b, | ||
| const fsp_matrix_instance_t * | p_dst | ||
| ) |
| base | FSP peripheral base address |
| *p_src_a | points to the first input matrix structure |
| *p_src_b | points to the second input matrix structure |
| *p_dst | points to output matrix structure |
| void FSP_MatDotMultF32 | ( | FSP_Type * | base, |
| const fsp_matrix_instance_t * | p_src_a, | ||
| const fsp_matrix_instance_t * | p_src_b, | ||
| const fsp_matrix_instance_t * | p_dst | ||
| ) |
| base | FSP peripheral base address |
| *p_src_a | points to the first input matrix structure |
| *p_src_b | points to the second input matrix structure |
| *p_dst | points to output matrix structure |
| void FSP_MatDotMultQ31 | ( | FSP_Type * | base, |
| const fsp_matrix_instance_t * | p_src_a, | ||
| const fsp_matrix_instance_t * | p_src_b, | ||
| const fsp_matrix_instance_t * | p_dst | ||
| ) |
| base | FSP peripheral base address |
| *p_src_a | points to the first input matrix structure |
| *p_src_b | points to the second input matrix structure |
| *p_dst | points to output matrix structure |
| void FSP_MatTransF32 | ( | FSP_Type * | base, |
| const fsp_matrix_instance_t * | p_src, | ||
| const fsp_matrix_instance_t * | p_dst | ||
| ) |
| base | FSP peripheral base address |
| *p_src | points to the input matrix |
| *p_dst | points to the output matrix |
| void FSP_MatScaleF32 | ( | FSP_Type * | base, |
| const fsp_matrix_instance_t * | p_src_a, | ||
| float32_t | scale_a, | ||
| const fsp_matrix_instance_t * | p_src_b, | ||
| float32_t | scale_b, | ||
| const fsp_matrix_instance_t * | p_dst | ||
| ) |
| base | FSP peripheral base address |
| *p_src_a | points to the first input matrix structure |
| scale_a | scale factor of matrix_a to be applied |
| *p_src_b | points to the second input matrix structure |
| scale_b | scale factor of matrix_b to be applied |
| *p_dst | points to output matrix structure |
| void FSP_MatScaleQ31 | ( | FSP_Type * | base, |
| const fsp_matrix_instance_t * | p_src_a, | ||
| float32_t | scale_a, | ||
| const fsp_matrix_instance_t * | p_src_b, | ||
| float32_t | scale_b, | ||
| const fsp_matrix_instance_t * | p_dst | ||
| ) |
| base | FSP peripheral base address |
| *p_src_a | points to the first input matrix structure |
| scale_a | scale factor of matrix_a to be applied |
| *p_src_b | points to the second input matrix structure |
| scale_b | scale factor of matrix_b to be applied |
| *p_dst | points to output matrix structure |
| void FSP_MatAddF32 | ( | FSP_Type * | base, |
| const fsp_matrix_instance_t * | p_src_a, | ||
| const fsp_matrix_instance_t * | p_src_b, | ||
| const fsp_matrix_instance_t * | p_dst | ||
| ) |
| base | FSP peripheral base address |
| *p_src_a | points to the first input matrix structure |
| *p_src_b | points to the second input matrix structure |
| *p_dst | points to output matrix structure |
| void FSP_MatAddQ31 | ( | FSP_Type * | base, |
| const fsp_matrix_instance_t * | p_src_a, | ||
| const fsp_matrix_instance_t * | p_src_b, | ||
| const fsp_matrix_instance_t * | p_dst | ||
| ) |
| base | FSP peripheral base address |
| *p_src_a | points to the first input matrix structure |
| *p_src_b | points to the second input matrix structure |
| *p_dst | points to output matrix structure |
| void FSP_MatSubF32 | ( | FSP_Type * | base, |
| const fsp_matrix_instance_t * | p_src_a, | ||
| const fsp_matrix_instance_t * | p_src_b, | ||
| const fsp_matrix_instance_t * | p_dst | ||
| ) |
| base | FSP peripheral base address |
| *p_src_a | points to the first input matrix structure |
| *p_src_b | points to the second input matrix structure |
| *p_dst | points to output matrix structure |
| void FSP_MatSubQ31 | ( | FSP_Type * | base, |
| const fsp_matrix_instance_t * | p_src_a, | ||
| const fsp_matrix_instance_t * | p_src_b, | ||
| const fsp_matrix_instance_t * | p_dst | ||
| ) |
| base | FSP peripheral base address |
| *p_src_a | points to the first input matrix structure |
| *p_src_b | points to the second input matrix structure |
| *p_dst | points to output matrix structure |
|
inlinestatic |
Processing function for the transfer engine.
| base | FSP peripheral base address |
| te_cfg | config value of the transfer engine. |
| *p_src | points to the input data buffer. |
| *p_dst | points to the output data buffer. |
| void FSP_TeIDCTPreProcess | ( | FSP_Type * | base, |
| float32_t * | p_data | ||
| ) |
Pre-processing function for IDCT.
| base | FSP peripheral base address |
| *p_data | points to input and output data. |
| void FSP_TePostProcess | ( | FSP_Type * | base, |
| const fsp_te_instance_t * | S, | ||
| fsp_te_io_mode_t | io_mode, | ||
| fsp_te_mode_t | te_mode, | ||
| float32_t * | p_data | ||
| ) |
Post-processing function for the transfer engine.
| base | FSP peripheral base address |
| *S | points to an instance of the fsp_te_instance_t structure. |
| io_mode | input and output mode defined by enum |
| te_mode | transfer engine mode defined by enum |
| *p_data | points to input and output data. |
| void FSP_RfftF32 | ( | FSP_Type * | base, |
| const fsp_te_instance_t * | S, | ||
| float32_t * | p_src, | ||
| float32_t * | p_dst | ||
| ) |
| base | FSP peripheral base address |
| *S | points to an instance of the fsp_te_instance_t structure. |
| *p_src | points to the input buffer. |
| *p_dst | points to the output buffer. |
| void FSP_RifftF32 | ( | FSP_Type * | base, |
| const fsp_te_instance_t * | S, | ||
| float32_t * | p_src, | ||
| float32_t * | p_dst | ||
| ) |
| base | FSP peripheral base address |
| *S | points to an instance of the fsp_te_instance_t structure. |
| *p_src | points to the input buffer. |
| *p_dst | points to the output buffer. |
| base | FSP peripheral base address |
| *S | points to an instance of the fsp_te_instance_t structure. |
| *p_src | points to the input buffer. |
| *p_dst | points to the output buffer. |
| base | FSP peripheral base address |
| *S | points to an instance of the fsp_te_instance_t structure. |
| *p_src | points to the input buffer. |
| *p_dst | points to the output buffer. |
| void FSP_CfftF32 | ( | FSP_Type * | base, |
| const fsp_te_instance_t * | S, | ||
| float32_t * | p_src, | ||
| float32_t * | p_dst, | ||
| uint8_t | ifft_flag | ||
| ) |
| base | FSP peripheral base address |
| *S | points to an instance of the fsp_te_instance_t structure. |
| *p_src | points to the input buffer. |
| *p_dst | points to the output buffer. |
| ifft_flag | flag that selects forward (ifft_flag=0) or inverse (ifft_flag=1) transform. |
| void FSP_CfftQ31 | ( | FSP_Type * | base, |
| const fsp_te_instance_t * | S, | ||
| q31_t * | p_src, | ||
| q31_t * | p_dst, | ||
| uint8_t | ifft_flag | ||
| ) |
| base | FSP peripheral base address |
| *S | points to an instance of the fsp_te_instance_t structure. |
| *p_src | points to the input buffer. |
| *p_dst | points to the output buffer. |
| ifft_flag | flag that selects forward (ifft_flag=0) or inverse (ifft_flag=1) transform. |
| void FSP_DctF32 | ( | FSP_Type * | base, |
| const fsp_te_instance_t * | S, | ||
| float32_t * | p_src, | ||
| float32_t * | p_dst, | ||
| uint8_t | idct_flag | ||
| ) |
| base | FSP peripheral base address |
| *S | points to an instance of the fsp_te_instance_t structure. |
| *p_src | points to the input buffer. |
| *p_dst | points to the output buffer. |
| idct_flag | flag that selects forward (idct_flag=0) or inverse (idct_flag=1) transform. |
| void FSP_DctQ31 | ( | FSP_Type * | base, |
| const fsp_te_instance_t * | S, | ||
| q31_t * | p_src, | ||
| q31_t * | p_dst, | ||
| uint8_t | idct_flag | ||
| ) |
| base | FSP peripheral base address |
| *S | points to an instance of the fsp_te_instance_t structure. |
| *p_src | points to the input buffer. |
| *p_dst | points to the output buffer. |
| idct_flag | flag that selects forward (idct_flag=0) or inverse (idct_flag=1) transform. |
|
inlinestatic |
Processing function for the statistic engine.
| base | FSP peripheral base address |
| *S | points to an instance of the statistic engine structure. |
| *p_src | points to the input data buffer. |
| void FSP_MaxMinF32 | ( | FSP_Type * | base, |
| float32_t * | p_src, | ||
| uint32_t | block_size, | ||
| float32_t * | p_max, | ||
| float32_t * | p_min | ||
| ) |
| *p_src | points to the input vector |
| block_size | length of the input vector |
| *p_max | maximum value returned here |
| *p_min | Minimum value returned here |
|
inlinestatic |
Interrupt-mode interface
| *p_src | points to the input vector |
| block_size | length of the input vector |
| void FSP_GetMaxMinIntResultF32 | ( | FSP_Type * | base, |
| float32_t * | p_src, | ||
| float32_t * | p_max, | ||
| float32_t * | p_min | ||
| ) |
Interrupt-mode interface
| *p_src | points to the input vector |
| *p_max | maximum value returned here |
| *p_min | Minimum value returned here |
| void FSP_MaxMinQ31 | ( | FSP_Type * | base, |
| q31_t * | p_src, | ||
| uint32_t | block_size, | ||
| q31_t * | p_max, | ||
| q31_t * | p_min | ||
| ) |
| *p_src | points to the input vector |
| block_size | length of the input vector |
| *p_max | maximum value returned here |
| *p_min | Minimum value returned here |
|
inlinestatic |
Interrupt-mode interface
| *p_src | points to the input vector |
| block_size | length of the input vector |
Interrupt-mode interface
| *p_src | points to the input vector |
| *p_max | maximum value returned here |
| *p_min | Minimum value returned here |
| void FSP_MaxF32 | ( | FSP_Type * | base, |
| float32_t * | p_src, | ||
| uint32_t | block_size, | ||
| float32_t * | p_result, | ||
| uint32_t * | p_index | ||
| ) |
| base | FSP peripheral base address |
| *p_src | points to the input vector |
| block_size | length of the input vector |
| *p_result | maximum value returned here |
| *p_index | index of maximum value returned here |
|
inlinestatic |
Interrupt-mode interface
| *p_src | points to the input vector |
| block_size | length of the input vector |
| void FSP_GetMaxIntResultF32 | ( | FSP_Type * | base, |
| float32_t * | p_src, | ||
| float32_t * | p_result, | ||
| uint32_t * | p_index | ||
| ) |
Interrupt-mode interface
| *p_src | points to the input vector |
| *p_result | maximum value returned here |
| *p_index | index of maximum value returned here |
| void FSP_MaxQ31 | ( | FSP_Type * | base, |
| q31_t * | p_src, | ||
| uint32_t | block_size, | ||
| q31_t * | p_result, | ||
| uint32_t * | p_index | ||
| ) |
| base | FSP peripheral base address |
| *p_src | points to the input vector |
| block_size | length of the input vector |
| *p_result | maximum value returned here |
| *p_index | index of maximum value returned here |
|
inlinestatic |
Interrupt-mode interface
| *p_src | points to the input vector |
| block_size | length of the input vector |
| void FSP_GetMaxIntResultQ31 | ( | FSP_Type * | base, |
| q31_t * | p_src, | ||
| q31_t * | p_result, | ||
| uint32_t * | p_index | ||
| ) |
Interrupt-mode interface
| *p_src | points to the input vector |
| *p_result | maximum value returned here |
| *p_index | index of maximum value returned here |
| void FSP_MinF32 | ( | FSP_Type * | base, |
| float32_t * | p_src, | ||
| uint32_t | block_size, | ||
| float32_t * | p_result, | ||
| uint32_t * | p_index | ||
| ) |
| base | FSP peripheral base address |
| *p_src | points to the input vector |
| block_size | length of the input vector |
| *p_result | minimum value returned here |
| *p_index | index of minimum value returned here |
|
inlinestatic |
Interrupt-mode interface
| *p_src | points to the input vector |
| block_size | length of the input vector |
| void FSP_GetMinIntResultF32 | ( | FSP_Type * | base, |
| float32_t * | p_src, | ||
| float32_t * | p_result, | ||
| uint32_t * | p_index | ||
| ) |
Interrupt-mode interface
| *p_src | points to the input vector |
| *p_result | minimum value returned here |
| *p_index | index of minimum value returned here |
| void FSP_MinQ31 | ( | FSP_Type * | base, |
| q31_t * | p_src, | ||
| uint32_t | block_size, | ||
| q31_t * | p_result, | ||
| uint32_t * | p_index | ||
| ) |
| base | FSP peripheral base address |
| *p_src | points to the input vector |
| block_size | length of the input vector |
| *p_result | minimum value returned here |
| *p_index | index of minimum value returned here |
|
inlinestatic |
Interrupt-mode interface
| *p_src | points to the input vector |
| block_size | length of the input vector |
| void FSP_GetMinIntResultQ31 | ( | FSP_Type * | base, |
| q31_t * | p_src, | ||
| q31_t * | p_result, | ||
| uint32_t * | p_index | ||
| ) |
Interrupt-mode interface
| *p_src | points to the input vector |
| *p_result | minimum value returned here |
| *p_index | index of minimum value returned here |
|
inlinestatic |
| idx | channel index. |
|
inlinestatic |
| void FSP_FirF32 | ( | FSP_Type * | base, |
| const fsp_fir_instance_t * | S, | ||
| float32_t * | p_src, | ||
| float32_t * | p_dst, | ||
| uint32_t | block_size | ||
| ) |
| base | FSP peripheral base address |
| *S | points to an instance of the FIR filter structure. |
| *p_src | points to the block of input floating-point data. |
| *p_dst | points to the block of output floating-point data. |
| block_size | number of samples to process per call, this value should bigger than 2. |
| void FSP_FirQ31 | ( | FSP_Type * | base, |
| const fsp_fir_instance_t * | S, | ||
| q31_t * | p_src, | ||
| q31_t * | p_dst, | ||
| uint32_t | block_size | ||
| ) |
| base | FSP peripheral base address |
| *S | points to an instance of the FIR filter structure. |
| *p_src | points to the block of input q31 data. |
| *p_dst | points to the block of output q31 data. |
| block_size | number of samples to process per call. |