Public functions of the push button device driver library. More...
Functions | |
volatile uint16_t | drv_PushButton_Initialize (volatile struct PUSH_BUTTON_OBJECT_s *pushbtn) |
Initializes the push button device driver. More... | |
volatile uint16_t | drv_PushButton_Execute (volatile struct PUSH_BUTTON_OBJECT_s *pushbtn) |
Initializes the push button device driver. More... | |
volatile uint16_t | drv_PushButton_Dispose (volatile struct PUSH_BUTTON_OBJECT_s *pushbtn) |
Initializes the push button device driver. More... | |
Public functions of the push button device driver library.
This is the detailed description of public API functions of the push button device driver library.
volatile uint16_t drv_PushButton_Dispose | ( | volatile struct PUSH_BUTTON_OBJECT_s * | pushbtn | ) |
Initializes the push button device driver.
pushbtn | Push button data object of type struct PUSH_BUTTON_OBJECT_s* |
Definition at line 153 of file drv_push_button.c.
volatile uint16_t drv_PushButton_Execute | ( | volatile struct PUSH_BUTTON_OBJECT_s * | pushbtn | ) |
Initializes the push button device driver.
pushbtn | Pointer to push button data object of type struct PUSH_BUTTON_OBJECT_s |
This function has to be called by a task scheduler at a constant frequency. With ever function call the state of the digital I/O is scanned and monitoring timers are updated to detect the most recent status of the push button and detect events like short press, long press and raise the respective events.
Definition at line 70 of file drv_push_button.c.
volatile uint16_t drv_PushButton_Initialize | ( | volatile struct PUSH_BUTTON_OBJECT_s * | pushbtn | ) |
Initializes the push button device driver.
pushbtn | Push button object of type struct PUSH_BUTTON_OBJECT_s* |
The push button driver offers typical functions of a human-machine interface push button such as
Users of this function driver can define and tune delay to adopt detection delays and related responses to the task execution period and hardware circuit related dependencies.
Definition at line 38 of file drv_push_button.c.