Cypress CapSense Middleware Library
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.