CAPSENSE™ Middleware Library 5.0
cy_stc_capsense_sensor_context_t Struct Reference

Description

Sensor context structure.

Data Fields

uint16_t raw
 Sensor raw count.
 
uint16_t bsln
 Sensor baseline.
 
uint16_t diff
 Sensor difference count.
 
uint8_t status
 Sensor status, contains masks: More...
 
uint8_t negBslnRstCnt
 Negative baseline reset counter.
 
uint8_t idacComp
 Compensation IDAC of CSD or IDAC in CSX. More...
 
uint8_t bslnExt
 Sensor baseline fractional.
 
uint8_t cdacComp
 Compensation CDAC. More...
 

Field Documentation

◆ status

uint8_t cy_stc_capsense_sensor_context_t::status

Sensor status, contains masks:

  • bit[0] - Regular Sensor Touched (CY_CAPSENSE_SNS_TOUCH_STATUS_MASK) or Proximity Sensor is active (CY_CAPSENSE_SNS_PROX_STATUS_MASK)
  • bit[1] - Proximity Sensor Touched (CY_CAPSENSE_SNS_TOUCH_PROX_STATUS_MASK)
  • bit[2] - Overflow during scanning (CY_CAPSENSE_SNS_OVERFLOW_MASK)

◆ idacComp

uint8_t cy_stc_capsense_sensor_context_t::idacComp

Compensation IDAC of CSD or IDAC in CSX.

Note
This field is available only for the fourth-generation CAPSENSE™.

◆ cdacComp

uint8_t cy_stc_capsense_sensor_context_t::cdacComp

Compensation CDAC.

Note
This field is available for the fifth-generation CAPSENSE™ and fifth-generation low power CAPSENSE™.