gos_button_config_t Struct Reference

Button configuration. More...

Data Fields

uint16_t debounce
 The active level for the button.
 
uint16_t click_time
 button must be at a high/low level for at least this time (ms) before it is considered stable
 
uint16_t press_time
 button must go from in-active to active to in-active, the active part must be no longer than this time in milliseconds
 
struct {
   gos_handler_t   click
 called when the button is considered pressed
 
   gos_handler_t   toggle
 called when the button is considered clicked
 
   gos_handler_t   changing
 called when the button changes between a high or low state
 
event_handler
 button active for longer than this time (ms) is considered pressed
 
gos_button_execution_context_t execution_context
 Button event handlers.
 

Detailed Description

Button configuration.