Cypress CapSense Middleware Library
cy_stc_capsense_widget_config_t Struct Reference

Description

Widget configuration structure.

Data Fields

cy_stc_capsense_widget_context_tptrWdContext
 Pointer to context structure of this widget.
 
cy_stc_capsense_sensor_context_tptrSnsContext
 Pointer to the first object of sensor context structure that belongs to this widget.
 
const cy_stc_capsense_electrode_config_tptrEltdConfig
 Pointer to the first object of electrode configuration structure that belongs to this widget.
 
cy_stc_capsense_smartsense_csd_noise_envelope_tptrNoiseEnvelope
 Pointer to the noise envelope filter used by SmartSense.
 
uint16_t * ptrRawFilterHistory
 Pointer to the raw count filter history of the widget.
 
uint8_t * ptrRawFilterHistoryLow
 Pointer to the raw count filter history extended of the widget.
 
uint32_t iirCoeff
 Raw count IIR filter coefficient. More...
 
uint8_t * ptrDebounceArr
 Pointer to the debounce array of the widget.
 
const uint8_t * ptrDiplexTable
 Pointer to the diplex table used for Linear slider when Diplex option is enabled.
 
uint32_t centroidConfig
 Configuration of centroids.
 
uint16_t xResolution
 Keeps maximum position value. More...
 
uint16_t yResolution
 For Touchpads Y-Axis maximum position.
 
uint16_t numSns
 The total number of sensors: For CSD widgets: WD_NUM_ROWS + WD_NUM_COLS. More...
 
uint8_t numCols
 For CSD Button and Proximity Widgets, the number of sensors. More...
 
uint8_t numRows
 For CSD Touchpad and Matrix Buttons, the number of the row sensors. More...
 
cy_stc_capsense_touch_tptrPosFilterHistory
 Pointer to the position filter history.
 
cy_stc_capsense_csx_touch_history_tptrCsxTouchHistory
 Pointer to the CSX touchpad history.
 
cy_stc_capsense_csx_touch_buffer_tptrCsxTouchBuffer
 Pointer to the single CSX buffer needed for CSX touchpad processing.
 
uint16_t * ptrCsdTouchBuffer
 Pointer to the CSD buffer needed for advanced CSD touchpad processing.
 
cy_stc_capsense_gesture_config_tptrGestureConfig
 Pointer to Gesture configuration structure.
 
cy_stc_capsense_gesture_context_tptrGestureContext
 Pointer to Gesture context structure.
 
cy_stc_capsense_ballistic_config_t ballisticConfig
 The configuration data for position ballistic filter. More...
 
cy_stc_capsense_ballistic_context_tptrBallisticContext
 Pointer to Ballistic filter context structure.
 
cy_stc_capsense_adaptive_filter_config_t aiirConfig
 The configuration of position adaptive filter. More...
 
cy_stc_capsense_advanced_touchpad_config_t advConfig
 The configuration of CSD advanced touchpad.
 
uint32_t posFilterConfig
 Position filters configuration.
 
uint16_t rawFilterConfig
 Raw count filters configuration.
 
uint8_t senseMethod
 Specifies the widget sensing method.
 
uint8_t wdType
 Specifies the widget type.
 

Field Documentation

◆ iirCoeff

uint32_t cy_stc_capsense_widget_config_t::iirCoeff

Raw count IIR filter coefficient.

Smaller value leads to higher filtering

◆ xResolution

uint16_t cy_stc_capsense_widget_config_t::xResolution

Keeps maximum position value.

For Touchpads X-axis maximum position

◆ numSns

uint16_t cy_stc_capsense_widget_config_t::numSns

The total number of sensors: For CSD widgets: WD_NUM_ROWS + WD_NUM_COLS.

For CSX widgets: WD_NUM_ROWS * WD_NUM_COLS.

◆ numCols

uint8_t cy_stc_capsense_widget_config_t::numCols

For CSD Button and Proximity Widgets, the number of sensors.

For CSD Slider Widget, the number of segments. For CSD Touchpad and Matrix Button, the number of the column sensors. For CSX Button, Touchpad, and Matrix Button, the number of the Rx electrodes.

◆ numRows

uint8_t cy_stc_capsense_widget_config_t::numRows

For CSD Touchpad and Matrix Buttons, the number of the row sensors.

For the CSX Button, the number of the Tx electrodes (constant 1u). For CSX Touchpad and Matrix Button, the number of the Tx electrodes.

◆ ballisticConfig

cy_stc_capsense_ballistic_config_t cy_stc_capsense_widget_config_t::ballisticConfig

The configuration data for position ballistic filter.

◆ aiirConfig

cy_stc_capsense_adaptive_filter_config_t cy_stc_capsense_widget_config_t::aiirConfig

The configuration of position adaptive filter.