|
GPS Device
|
Internal structure representing a single button instance. More...

Public Attributes | |
| char | name [CONFIG_BUTTON_MAX_NAME_LEN] |
| GPIO_REGDEF_ts * | gpio_port |
| GPIO_PIN_te | gpio_pin |
| BUTTON_PUSHED_TYPE_te | pushed_type |
| uint32_t | debounce_limit_ms |
| uint32_t | held_limit_ms |
| uint32_t | debounce_started_ms |
| uint32_t | held_started_ms |
| bool | debounce_started |
| bool | held_started |
| bool | pushed |
| bool | held |
| bool | in_use |
Internal structure representing a single button instance.
Holds all runtime state for one button, including configuration copied from BUTTON_CFG_ts, debounce and hold timing state, and the current logical pressed/held flags.
This structure is opaque to the caller; it is accessed only through the BUTTON_HANDLE_ts pointer returned by button_init_handle.
| char button_handle_s::name[CONFIG_BUTTON_MAX_NAME_LEN] |
| GPIO_REGDEF_ts* button_handle_s::gpio_port |
| GPIO_PIN_te button_handle_s::gpio_pin |
| BUTTON_PUSHED_TYPE_te button_handle_s::pushed_type |
| uint32_t button_handle_s::debounce_limit_ms |
| uint32_t button_handle_s::held_limit_ms |
| uint32_t button_handle_s::debounce_started_ms |
| uint32_t button_handle_s::held_started_ms |
| bool button_handle_s::debounce_started |
| bool button_handle_s::held_started |
| bool button_handle_s::pushed |
| bool button_handle_s::held |
True when the button has been held longer than held_limit_ms.
| bool button_handle_s::in_use |