CAPSENSE™ Middleware Library 5.0
Middleware State Macros

General Description

Middleware state macros.

Macros

#define CY_CAPSENSE_BUSY   (0x80u)
 The CAPSENSE™ middleware is busy.
 
#define CY_CAPSENSE_NOT_BUSY   (0x00u)
 The CAPSENSE™ middleware is not busy.
 
#define CY_CAPSENSE_BUSY_MASK   (0xFFu)
 The CAPSENSE™ middleware busy mask.
 
#define CY_CAPSENSE_BUSY_CH_MASK   (0x01u)
 The MSCv3 channel busy mask.
 
#define CY_CAPSENSE_BUSY_ALL_CH_MASK   (0x0Fu)
 All MSCv3 channels busy mask.
 
#define CY_CAPSENSE_MW_STATE_LP_ACTIVE_MASK   (0x400u)
 There was any sensor touch detected at the previous low power widget scan.
 
#define CY_CAPSENSE_MW_STATE_BIST_MASK   (0x800u)
 The BIST is currently in progress.
 
#define CY_CAPSENSE_MW_STATE_CALIBRATION_SINGLE_MASK   (0x1000u)
 The auto-calibration in Single CDAC mode.
 
#define CY_CAPSENSE_MW_STATE_CALIBRATION_MASK   (0x2000u)
 The auto-calibration is currently in progress.
 
#define CY_CAPSENSE_MW_STATE_SMARTSENSE_MASK   (0x4000u)
 The smart sensing algorithm is currently in progress.
 
#define CY_CAPSENSE_MW_STATE_INITIALIZATION_MASK   (0x8000u)
 The middleware initialization is currently in progress.
 
#define CY_CAPSENSE_MW_STATE_SCAN_SLOT_MASK   (0xFFFF0000u)
 The currently active or last scanned slot ID mask.
 
#define CY_CAPSENSE_MW_STATE_SCAN_SLOT_POS   (16u)
 Current scan slot position in status.