Push button function driver data object. More...
#include <push_button/drivers/drv_push_button.h>
Data Fields | |
volatile struct PUSH_BUTTON_STATUS_s | status |
Status word of the switch object. More... | |
volatile uint16_t | debounce_delay |
Number of call cycles until a switch event is triggered. More... | |
volatile uint16_t | long_press_delay |
Number of call cycles until a "long press" switch event is triggered. More... | |
volatile uint16_t(* | event_btn_down )(void) |
Function pointer to user function triggering a PRESSED event. More... | |
volatile uint16_t(* | event_long_press )(void) |
Function pointer to user function triggering a LONG_PRESS event. More... | |
volatile uint16_t(* | event_pressed )(void) |
Function pointer to user function triggering a LONG_PRESS event. More... | |
volatile uint16_t(* | event_btn_up )(void) |
Function pointer to user function triggering a RELEASE event. More... | |
Push button function driver data object.
The Push Button function driver data object is used to store the user configuration of a push-button. Thus, multiple push button objects can be defined, which will be individually monitored by the drv_PushButton_Execute function.
Definition at line 108 of file drv_push_button.h.
volatile uint16_t debounce_delay |
Number of call cycles until a switch event is triggered.
Definition at line 111 of file drv_push_button.h.
volatile uint16_t(* event_btn_down) (void) |
Function pointer to user function triggering a PRESSED event.
Definition at line 113 of file drv_push_button.h.
volatile uint16_t(* event_btn_up) (void) |
Function pointer to user function triggering a RELEASE event.
Definition at line 116 of file drv_push_button.h.
volatile uint16_t(* event_long_press) (void) |
Function pointer to user function triggering a LONG_PRESS event.
Definition at line 114 of file drv_push_button.h.
volatile uint16_t(* event_pressed) (void) |
Function pointer to user function triggering a LONG_PRESS event.
Definition at line 115 of file drv_push_button.h.
volatile uint16_t long_press_delay |
Number of call cycles until a "long press" switch event is triggered.
Definition at line 112 of file drv_push_button.h.
volatile struct PUSH_BUTTON_STATUS_s status |
Status word of the switch object.
Definition at line 15 of file drv_push_button.h.