9 #include "config/hal.h"    10 #include "app_push_button.h"     11 #include "lcd/app_lcd.h"    15 #define PUSH_BUTTON_DEBOUNCE_DELAY_DEFAULT    1    // Push Button needs to be pressed >20ms to trip a PUSH BUTTON switch event    16 #define PUSH_BUTTON_LONG_PRESS_DELAY_DEFAULT  24   // Push Button needs to be pressed >500ms to trip a PUSH BUTTON switch event    21 volatile uint16_t appPushButton_EventButtonDown(
void);
    22 volatile uint16_t appPushButton_EventButtonPressed(
void);
    23 volatile uint16_t appPushButton_EventButtonLongPress(
void);
    24 volatile uint16_t appPushButton_EventButtonUp(
void);
    45 volatile uint16_t appPushButton_Initialize(
void) 
    47     volatile uint16_t retval = 1;
    49     retval &= drv_PushButton_Initialize(&push_button);   
    81 volatile uint16_t appPushButton_Execute(
void) 
    83     volatile uint16_t retval = 1;
    87     retval &= drv_PushButton_Execute(&push_button);
   112 volatile uint16_t appPushButton_Start(
void) {
   114     volatile uint16_t retval = 1;
   138 volatile uint16_t appPushButton_Dispose(
void) 
   140     volatile uint16_t retval = 1;
   142     retval &= drv_PushButton_Dispose(&push_button);
   167 volatile uint16_t appPushButton_EventButtonDown(
void) 
   189 volatile uint16_t appPushButton_EventButtonUp(
void) 
   211 volatile uint16_t appPushButton_EventButtonPressed(
void)
   233 volatile uint16_t appPushButton_EventButtonLongPress(
void) {
 volatile uint16_t long_press_delay
Number of call cycles until a "long press" switch event is triggered.
 
volatile uint16_t screens
 
volatile uint16_t(* event_pressed)(void)
Function pointer to user function triggering a LONG_PRESS event.
 
volatile uint16_t(* event_long_press)(void)
Function pointer to user function triggering a LONG_PRESS event.
 
volatile uint16_t debounce_delay
Number of call cycles until a switch event is triggered.
 
volatile struct PUSH_BUTTON_STATUS_s status
Status word of the switch object.
 
volatile uint16_t(* event_btn_up)(void)
Function pointer to user function triggering a RELEASE event.
 
volatile bool enabled
Bit 15: Enables/disables the Switch button object.
 
volatile uint16_t(* event_btn_down)(void)
Function pointer to user function triggering a PRESSED event.