Button Parameters
This page provides a comprehensive overview of the essential button structures, enums, and typedefs used in the Capacitive Voltage Divider (CVD) technique for touch sensing.
For APIs, refer to the Button Application Programming Interfaces (APIs) page.
Button Typedefs
mtouch_button_statecounter_t
Description: Defines the button state counter minimum and maximum
Range:
#define MTOUCH_BUTTON_STATECOUNTER_MAX (UINT16_MAX)
mtouch_button_baselinecounter_t
Description: Defines the button baseline counter minimum and maximum
Range:
#define MTOUCH_BUTTON_BASECOUNTER_MAX (UINT16_MAX)
mtouch_button_reading_t
Description: Defines the button reading minimum and maximum
Range:
#define MTOUCH_BUTTON_READING_MAX (UINT16_MAX)
mtouch_button_baseline_t
Description: Defines the button baseline reading minimum and maximum
Range:
#define MTOUCH_BUTTON_BASELINE_MAX (UINT32_MAX)
mtouch_button_deviation_t
Description: Defines the button deviation reading minimum and maximum
Range:
#define MTOUCH_BUTTON_DEVIATION_MAX (INT8_MAX)
mtouch_button_threshold_t
Description: Defines the button theshold minimum and maximum
Range:
#define MTOUCH_BUTTON_THRESHOLD_MAX ((mtouch_button_threshold_t)(127))
mtouch_button_scaling_t
Description: Defines the button scaling minimum and maximum
Range:
#define MTOUCH_BUTTON_SCALING_MAX ((mtouch_button_scaling_t)(8))
Button enum and Structures
mtouch_button_state
Description: Available states for button in the statemachine
mtouch_button_hysteresis_thresholds
Description: Available hystersis thresholds for buttons
mtouch_button_t
Description: Lists down all the elements corresponding to buttons configured in the project