Widget context structure.
Data Fields | |
uint16_t | fingerCap |
Widget finger capacitance parameter used for the CSD widgets only when smart sensing algorithm is enabled. | |
uint16_t | sigPFC |
The 75% of signal per user-defined finger capacitance. | |
uint16_t | resolution |
Provides scan resolution for the CSD Widgets. More... | |
uint16_t | maxRawCount |
Calculated maximum raw count of widget. | |
uint16_t | maxRawCountRow |
Calculated row maximum raw count of widget. | |
uint16_t | fingerTh |
Widget Finger Threshold. | |
uint16_t | proxTh |
Widget Proximity Threshold. | |
uint16_t | lowBslnRst |
The widget low baseline reset count. More... | |
uint16_t | snsClk |
Sense Clock Divider. More... | |
uint16_t | rowSnsClk |
Row Sense Clock Divider for the Matrix Buttons and Touchpad widgets. | |
uint16_t | gestureDetected |
Mask of detected gestures. | |
uint16_t | gestureDirection |
Mask of directions of detected gestures. | |
int16_t | xDelta |
The filtered by Ballistic Multiplier X-displacement. | |
int16_t | yDelta |
The filtered by Ballistic Multiplier Y-displacement. | |
uint16_t | noiseTh |
Widget Noise Threshold. | |
uint16_t | nNoiseTh |
Widget Negative Noise Threshold. | |
uint16_t | hysteresis |
Widget Hysteresis for the signal crossing finger threshold. | |
uint8_t | onDebounce |
Widget Debounce for the signal above the finger threshold 1 to 255. More... | |
uint8_t | snsClkSource |
Widget clock source. More... | |
uint8_t | idacMod [CY_CAPSENSE_MAX_SUPPORTED_FREQ_NUM] |
Sets the current of the modulation IDAC for the CSD widgets. More... | |
uint8_t | idacGainIndex |
Index of IDAC gain in table cy_stc_capsense_idac_gain_table_t. More... | |
uint8_t | rowIdacMod [CY_CAPSENSE_MAX_SUPPORTED_FREQ_NUM] |
Sets the current of the modulation IDAC for the row sensors for the CSD Touchpad and Matrix Button widgets. More... | |
uint8_t | bslnCoeff |
Baseline IIR filter coefficient. More... | |
uint8_t | status |
Contains masks: More... | |
cy_stc_capsense_touch_t | wdTouch |
Widget touch structure used for Matrix Buttons, Sliders, and Touchpads. | |
uint16_t | numSubConversions |
Number of sub-conversions in a scan. More... | |
uint8_t | cdacRef |
Sets the capacitance of the reference CDAC. More... | |
uint8_t | rowCdacRef |
Sets the capacitance of the row reference CDAC for CSD Touchpad and CSD Matrix buttons widgets. More... | |
uint8_t | cicRate |
Sets decimation rate when CIC2 is enabled. More... | |
uint8_t | cdacDitherEn |
Enabled CDAC dithering. More... | |
uint8_t | cdacDitherValue |
CDAC dither scale value in bits. More... | |
uint8_t | coarseInitBypassEn |
Skip Cmod coarse initialization sensors scan within widget. More... | |
uint16_t | cdacCompDivider |
Number of time DAC switched in sense clock period. More... | |
uint8_t | lfsrBits |
Defines the number of LSB bits to use by the LSFR unit to achieve the desired clock dithering variation. More... | |
uint8_t | cicShift |
Sets the right shift value applied to CIC2 accumulator to form rawcounts when CIC2 is enabled. More... | |
uint8_t | rowCicShift |
Sets the right shift value applied to CIC2 accumulator to form rawcounts when CIC2 is enabled. More... | |
uint16_t cy_stc_capsense_widget_context_t::resolution |
Provides scan resolution for the CSD Widgets.
Provides number of sub-conversions for the CSX Widgets
uint16_t cy_stc_capsense_widget_context_t::lowBslnRst |
The widget low baseline reset count.
Specifies the number of samples the sensor signal must be below the Negative Noise Threshold nNoiseTh to trigger a baseline reset
uint16_t cy_stc_capsense_widget_context_t::snsClk |
Sense Clock Divider.
For the Matrix Buttons and Touchpad widgets specifies the column sense clock divider
uint8_t cy_stc_capsense_widget_context_t::onDebounce |
Widget Debounce for the signal above the finger threshold 1 to 255.
uint8_t cy_stc_capsense_widget_context_t::snsClkSource |
Widget clock source.
For fourth-generation CAPSENSE™:
For fifth-generation and fifth-generation low power CAPSENSE™: bit[3] - Indicates auto mode of PRS clock source bit[2] - Indicates auto mode of SSC clock source
uint8_t cy_stc_capsense_widget_context_t::idacMod[CY_CAPSENSE_MAX_SUPPORTED_FREQ_NUM] |
Sets the current of the modulation IDAC for the CSD widgets.
For the CSD Touchpad and Matrix Button widgets sets the current of the modulation IDAC for the column sensors. Not used for the CSX widgets.
uint8_t cy_stc_capsense_widget_context_t::idacGainIndex |
Index of IDAC gain in table cy_stc_capsense_idac_gain_table_t.
uint8_t cy_stc_capsense_widget_context_t::rowIdacMod[CY_CAPSENSE_MAX_SUPPORTED_FREQ_NUM] |
Sets the current of the modulation IDAC for the row sensors for the CSD Touchpad and Matrix Button widgets.
Not used for the CSX widgets.
uint8_t cy_stc_capsense_widget_context_t::bslnCoeff |
Baseline IIR filter coefficient.
Lower value leads to higher filtering.
uint8_t cy_stc_capsense_widget_context_t::status |
Contains masks:
uint16_t cy_stc_capsense_widget_context_t::numSubConversions |
Number of sub-conversions in a scan.
uint8_t cy_stc_capsense_widget_context_t::cdacRef |
Sets the capacitance of the reference CDAC.
uint8_t cy_stc_capsense_widget_context_t::rowCdacRef |
Sets the capacitance of the row reference CDAC for CSD Touchpad and CSD Matrix buttons widgets.
uint8_t cy_stc_capsense_widget_context_t::cicRate |
Sets decimation rate when CIC2 is enabled.
uint8_t cy_stc_capsense_widget_context_t::cdacDitherEn |
Enabled CDAC dithering.
uint8_t cy_stc_capsense_widget_context_t::cdacDitherValue |
CDAC dither scale value in bits.
uint8_t cy_stc_capsense_widget_context_t::coarseInitBypassEn |
Skip Cmod coarse initialization sensors scan within widget.
uint16_t cy_stc_capsense_widget_context_t::cdacCompDivider |
Number of time DAC switched in sense clock period.
uint8_t cy_stc_capsense_widget_context_t::lfsrBits |
Defines the number of LSB bits to use by the LSFR unit to achieve the desired clock dithering variation.
uint8_t cy_stc_capsense_widget_context_t::cicShift |
Sets the right shift value applied to CIC2 accumulator to form rawcounts when CIC2 is enabled.
uint8_t cy_stc_capsense_widget_context_t::rowCicShift |
Sets the right shift value applied to CIC2 accumulator to form rawcounts when CIC2 is enabled.