Urbanite: Parking aid system
fsm_button_t Struct Reference

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
 

Detailed Description

Structure of the Button FSM.

Field Documentation

◆ button_id

uint32_t fsm_button_t::button_id

Button ID. Must be unique.

◆ debounce_time_ms

uint32_t fsm_button_t::debounce_time_ms

Button debounce time in ms

◆ duration

uint32_t fsm_button_t::duration

How much time the button has been pressed

◆ f

fsm_t fsm_button_t::f

Button FSM

◆ next_timeout

uint32_t fsm_button_t::next_timeout

Next timeout for the anti-debounce in ms

◆ tick_pressed

uint32_t fsm_button_t::tick_pressed

Number of ticks when the button was pressed


The documentation for this struct was generated from the following file: