/****************************************************************************
Header file for template Flat Sate Machine
based on the Gen2 Events and Services Framework
****************************************************************************/
#ifndef ButtonModule_H
#define ButtonModule_H
// Event Definitions
#include "ES_Configure.h" /* gets us event definitions */
#include "ES_Types.h" /* gets bool type for returns */
#include "ES_Events.h"
// typedefs for the states
// State definitions for use with the query function
typedef enum
{
InitBState, WaitForPress, PressDetected
}ButtonModuleState_t;
// Public Function Prototypes
bool InitButtonModule(uint8_t Priority);
bool PostButtonModule(ES_Event_t ThisEvent);
ES_Event_t RunButtonModule(ES_Event_t ThisEvent);
ButtonModuleState_t QueryButtonModule(void);
#endif /* FSMTemplate_H */