This header file defines functions and types for debouncing curtain events. It includes event definition files, defines an enumeration for curtain debounce states of debouncing and ready to sample, and prototypes boolean functions for initializing debouncing with a priority, posting a debounced event, and running the debouncing process to return a debounced event.
This header file defines functions and types for debouncing curtain events. It includes event definition files, defines an enumeration for curtain debounce states of debouncing and ready to sample, and prototypes boolean functions for initializing debouncing with a priority, posting a debounced event, and running the debouncing process to return a debounced event.
This header file defines functions and types for debouncing curtain events. It includes event definition files, defines an enumeration for curtain debounce states of debouncing and ready to sample, and prototypes boolean functions for initializing debouncing with a priority, posting a debounced event, and running the debouncing process to return a debounced event.
based on the Gen 2 Events and Services Framework ****************************************************************************/ #ifndef CurtainDebounce_H #define CurtainDebounce_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 {Curtain_Debouncing, Curtain_Ready2Sample} CDBState_t; // Public Function Prototypes bool InitCurtainDebounce(uint8_t Priority); bool PostCurtainDebounce(ES_Event ThisEvent); ES_Event RunCurtainDebounce(ES_Event ThisEvent); #endif /* CurtainDebounce_H */