The FIR filter Configuration structure.
Data Fields | |
cy_en_hppass_fir_chan_t | chan |
Filtering channel selection. | |
bool | waitTapInit |
Wait for 16 samples before the first valid result is available by the Cy_HPPASS_SAR_Result_FirRead function or FIFO. More... | |
int16_t | coef [CY_HPPASS_FIR_TAP_NUM] |
FIR Coefficient Values The coefficient values can range from -1+1/2^15 to 1-1/2^15 with a resolution of 1/2^15. More... | |
cy_en_hppass_sar_limit_t | limit |
Limit crossing detector selection. | |
bool | result |
The result is available by the Cy_HPPASS_SAR_Result_FirRead function and the result interrupt is generated. | |
cy_en_hppass_fifo_t | fifo |
FIFO selection. | |
bool cy_stc_hppass_fir_t::waitTapInit |
Wait for 16 samples before the first valid result is available by the Cy_HPPASS_SAR_Result_FirRead function or FIFO.
This allows to ignore the FIR results until the FIR pipeline is initialized.
int16_t cy_stc_hppass_fir_t::coef[CY_HPPASS_FIR_TAP_NUM] |
FIR Coefficient Values The coefficient values can range from -1+1/2^15 to 1-1/2^15 with a resolution of 1/2^15.
The coefficient uses twos-complement notation and the decimal point is fixed to the right of the most significant bit. Examples: -0.25 = 0xE000 and 0.25 = 0x2000 The max absolute value of the FIR gain must be less than 8 (sum of all the coefficients), otherwise the result may overflow allocated 16-bits.