CAPSENSE™ Middleware Library 5.0
Touch-related Macros

General Description

Touch-related macros.

Macros

#define CY_CAPSENSE_POSITION_NONE   (0x00u)
 No touch detected.
 
#define CY_CAPSENSE_POSITION_ONE   (0x01u)
 One finger touch detected.
 
#define CY_CAPSENSE_POSITION_TWO   (0x02u)
 Two finger touches detected.
 
#define CY_CAPSENSE_POSITION_THREE   (0x03u)
 Three finger touches detected.
 
#define CY_CAPSENSE_POSITION_MULTIPLE   (0xFFu)
 Multiple touches detected that exceed number of supported touches.
 
#define CY_CAPSENSE_MAX_CENTROIDS   (3u)
 Maximum possible centroid number.
 
#define CY_CAPSENSE_CSX_TOUCHPAD_MAX_PEAKS   (5u)
 Maximum number of peaks in CSX Touchpad.
 
#define CY_CAPSENSE_CSX_TOUCHPAD_MAX_AGE   (0xFFu)
 Maximum age of a touch.
 
#define CY_CAPSENSE_CSX_TOUCHPAD_ID_UNDEFINED   (0x80u)
 Undefined ID.
 
#define CY_CAPSENSE_CSX_TOUCHPAD_ID_ABSENT   (0x40u)
 Non-assigned ID.
 
#define CY_CAPSENSE_CSX_TOUCHPAD_ID_ON_FAIL   (0x20u)
 Touch below threshold ID.
 
#define CY_CAPSENSE_CSX_TOUCHPAD_ID_MIN   (0u)
 Minimum ID.
 
#define CY_CAPSENSE_CSX_TOUCHPAD_ID_MAX   (7u)
 Maximum ID.
 
#define CY_CAPSENSE_CSX_TOUCHPAD_ID_MASK   (0x00FFu)
 ID mask.
 
#define CY_CAPSENSE_CSX_TOUCHPAD_Z_MASK   (0x00FFu)
 Touch power mask.
 
#define CY_CAPSENSE_CSX_TOUCHPAD_AGE_MASK   (0xFF00u)
 Age mask.
 
#define CY_CAPSENSE_CSX_TOUCHPAD_DEBOUNCE_MASK   (0xFF00u)
 Debounce mask.
 
#define CY_CAPSENSE_ADVANCED_CENTROID_NO_TOUCHES   (0x00u)
 No touch detected.
 
#define CY_CAPSENSE_ADVANCED_CENTROID_POSITION_ERROR   (0xFFu)
 An error in touch calculation or number of detected touches is above supported touches.