You are on page 1of 1

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

Header file for MusicSequence


based on the Gen 2 Events and Services Framework

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

#ifndef MusicSequence_H
#define MusicSequence_H

// Event Definitions
#include "ES_Configure.h" /* gets us event definitions */
#include "ES_Types.h" /* gets bool type for returns */
// the common headers for C99 types
#include <stdint.h>
#include <stdbool.h>

// typedefs for the states


// State definitions for use with the query function
typedef enum
{ InitializeMusicSequence, WelcomeState, FirstDebounceHeadphones, WaitForCar,
WaitForNote, WaitForAttack,
WaitForHeadphonesMusic, DebounceHeadphones

}MusicSequenceState_t;

// Public Function Prototypes

bool InitMusicSequence(uint8_t Priority);


bool PostMusicSequence(ES_Event ThisEvent);
ES_Event RunMusicSequence(ES_Event ThisEvent);

bool Check4Notes(void);
bool Check4Headphones(void);

#endif /* MusicSequence_H */

You might also like