CubeMon-Vue-Demo-STM32F407VGT6U
digitalInputDef Struct Reference

Data Fields

uint8_t is_initialized
 set to 1 after successful initialization
 
uint8_t mx_logical_state
 debounced logical state of the input
 
uint8_t mx_rewrites
 helper variable for CubeMonitor
 
uint8_t mx_value
 helper variable for CubeMonitor
 
uint8_t double_press_monitoring
 helper variable for double press detection
 
uint16_t double_press_counter
 helper variable for double press detection
 
digitalInputSM state
 holds state for state machine evaluating the input actions
 
GPIO_PinState last_confirmed_hw_state
 help variable for input debouncing
 
uint16_t counter
 help variable for input debouncing More...
 
GPIO_PinState on_state
 
GPIO_PinState off_state
 
digitalInputInitData inits
 initialization data
 
digitalInputAction actions [INPUT_ACT_NONE]
 

Field Documentation

◆ actions

digitalInputAction digitalInputDef::actions[INPUT_ACT_NONE]

keep track of the input actions

◆ counter

uint16_t digitalInputDef::counter

help variable for input debouncing

based on the initialization data, saves the HW state at which is the input considered on

Note
it is possible to evaluate this from the inits structure, but this makes the code readable

◆ off_state

GPIO_PinState digitalInputDef::off_state

based on the initialization data, saves the HW state at which is the input considered off

Note
it is possible to evaluate this from the inits structure, but this makes the code readable

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