Urbanite: Parking aid system
|
Structure of the Button FSM. More...
Data Fields | |
fsm_t | f |
uint32_t | debounce_time_ms |
uint32_t | next_timeout |
uint32_t | tick_pressed |
uint32_t | duration |
uint32_t | button_id |
Structure of the Button FSM.
uint32_t fsm_button_t::button_id |
Button ID. Must be unique.
uint32_t fsm_button_t::debounce_time_ms |
Button debounce time in ms
uint32_t fsm_button_t::duration |
How much time the button has been pressed
fsm_t fsm_button_t::f |
Button FSM
uint32_t fsm_button_t::next_timeout |
Next timeout for the anti-debounce in ms
uint32_t fsm_button_t::tick_pressed |
Number of ticks when the button was pressed