This header file defines functions and types for debouncing button inputs. It includes event definition files and type definition files. It defines an enumeration for the two possible states in debouncing, Debouncing and Ready2Sample. It also prototypes three public functions - InitButtonDebounce to initialize with a priority, PostButtonDebounce to post events, and RunButtonDebounce to process events.
This header file defines functions and types for debouncing button inputs. It includes event definition files and type definition files. It defines an enumeration for the two possible states in debouncing, Debouncing and Ready2Sample. It also prototypes three public functions - InitButtonDebounce to initialize with a priority, PostButtonDebounce to post events, and RunButtonDebounce to process events.
This header file defines functions and types for debouncing button inputs. It includes event definition files and type definition files. It defines an enumeration for the two possible states in debouncing, Debouncing and Ready2Sample. It also prototypes three public functions - InitButtonDebounce to initialize with a priority, PostButtonDebounce to post events, and RunButtonDebounce to process events.
This header file defines functions and types for debouncing button inputs. It includes event definition files and type definition files. It defines an enumeration for the two possible states in debouncing, Debouncing and Ready2Sample. It also prototypes three public functions - InitButtonDebounce to initialize with a priority, PostButtonDebounce to post events, and RunButtonDebounce to process events.
based on the Gen 2 Events and Services Framework ****************************************************************************/ #ifndef ButtonDebounce_H #define ButtonDebounce_H // Event Definitions #include "ES_Configure.h" /* gets us event definitions */ #include "ES_Types.h" /* gets bool type for returns */ // typedefs for the states // State definitions for use with the query function typedef enum {Debouncing, Ready2Sample} DBState_t; // Public Function Prototypes bool InitButtonDebounce(uint8_t Priority); bool PostButtonDebounce(ES_Event ThisEvent); ES_Event RunButtonDebounce(ES_Event ThisEvent); #endif /* LCDService_H */