CAPSENSE™ Middleware Library 5.0
cy_stc_capsense_position_t Struct Reference

Description

Declares position structure that keep information of a single touch.

Depending on a widget type each structure field keeps the following information:

Structure Field Slider Matrix Buttons CSD Touchpad CSX Touchpad
x X-axis position Active Column X-axis position X-axis position
y Reserved Active Row Y-axis position Y-axis position
z Reserved Reserved Reserved MSB = Age of touch; LSB = Z-value represents a touch strength (summ of sensor diff counts divided by 16 that form 3x3 matrix with a local maximum in the center). It is not used by Middleware, however can be re-used by users to define a touch shape or a finger size.
id Reserved Logical number of button Reserved MSB = Debounce; LSB = touch ID

Data Fields

uint16_t x
 X position.
 
uint16_t y
 Y position.
 
uint16_t z
 Z value.
 
uint16_t id
 ID of touch.