CAPSENSE™ Middleware Library 5.0
cy_stc_capsense_touch_t Struct Reference

Description

Declares touch structure used to store positions of Touchpad, Matrix buttons and Slider widgets.

Data Fields

cy_stc_capsense_position_tptrPosition
 Pointer to the array containing the position information. More...
 
uint8_t numPosition
 Total number of detected touches on a widget: More...
 

Field Documentation

◆ ptrPosition

cy_stc_capsense_position_t* cy_stc_capsense_touch_t::ptrPosition

Pointer to the array containing the position information.

A number of elements is defined by numPosition.

◆ numPosition

uint8_t cy_stc_capsense_touch_t::numPosition

Total number of detected touches on a widget:

  • 0 - no touch is detected
  • 1 - a single touch is detected
  • 2 - two touches are detected
  • 3 - three touches are detected
  • CY_CAPSENSE_POSITION_MULTIPLE - multiple touches are detected and information in position structure should be ignored.

The below table specifies a number of touches could be reported for a specific widget.

CAPSENSE Number of positions
Sensing method Widget type 0 1 2   3   Multiple
CSD Button  No touch 
 detected 
Number of active sensors
(up to number of sensors)
N/A
Matrix button Single touch
detected
N/A N/A Multiple touches
detected
Linear slider Single touch
detected
N/A N/A N/A
Radial slider Single touch
detected
N/A N/A N/A
Touchpad Single touch
detected
Two touches
detected
N/A Multiple touches
detected
Proximity Number of active sensors
(up to number of sensors)
N/A
CSX Button Number of active sensors
(up to number of sensors)
N/A
Matrix button Number of active sensors
(up to number of sensors)
N/A
Linear slider Single touch
detected
N/A N/A N/A
Touchpad Number of touches
(up to 3)
N/A