/**************************************************************************** Header file for template service based on the Gen 2 Events and Services Framework ****************************************************************************/ #ifndef MotorService_H #define MotorService_H #include "ES_Types.h" // typedefs for the states // State definitions for use with the query function typedef enum { Stopped, FinishingTurn, Counterclockwise90, Clockwise90, ForwardHalf, ForwardFull, BackwardHalf, BackwardFull, ForwardShort, ForwardLong, BackwardShort, BackwardLong, CounterclockwiseIndefinite, ForwardJoust, BackwardJoust } MotorState_t ; // Public Function Prototypes bool InitMotorService ( uint8_t Priority ); bool PostMotorService( ES_Event ThisEvent ); ES_Event RunMotorService( ES_Event ThisEvent ); MotorState_t QueryMotorService ( void ); #endif /* ServTemplate_H */