/****************************************************************************
Header file for RocketMotorService
based on the Gen 2 Events and Services Framework
****************************************************************************/
#ifndef RocketMotorService_H
#define RocketMotorService_H
// Event Definitions
#include "ES_Configure.h" /* gets us event definitions */
#include "ES_Framework.h" /* gets ES_Framework */
#include "ES_Types.h" /* gets bool type for returns */
#include "PWM16Tiva.h"
// typedefs for the states
// State definitions for use with the query function
typedef enum { RocketInitPState, RocketForwardState1, RocketForwardState2,
RocketBackState1, RocketBackState2,RocketWaitingState } RocketMotorState_t;
// Public Function Prototypes
bool InitRocketMotor ( uint8_t Priority );
bool Check4Lever(void);
bool PostRocketMotor( ES_Event ThisEvent );
ES_Event RunRocketMotor( ES_Event ThisEvent );
#endif /* RocketMotorService_H */