Sie sind auf Seite 1von 1

/****************************************************************************

Header file for Car State Machine


based on the Gen2 Events and Services Framework

****************************************************************************/

#ifndef Car_H
#define Car_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
{
InitializingCar, WelcomeCar, WaitingForPlacement, MusicSequence, MovingToEnd,
CarResetting, WaitingForHeadphones
}CarState_t;

// Public Function Prototypes

bool InitCar(uint8_t Priority);


bool PostCar(ES_Event ThisEvent);
ES_Event RunCar(ES_Event ThisEvent);

bool CheckCarPlace(void);
bool CheckLimitEnd(void);
bool CheckLimitHome(void);

#endif /* Car_H */

Das könnte Ihnen auch gefallen