0% found this document useful (0 votes)
51 views

Musicsequence

This C header file defines types and function prototypes for a music sequence module based on an events and services framework. It includes event and type definitions, defines enumeration values for different music sequence states, and declares functions for initializing and running the music sequence state machine as well as checking for notes and headphones.

Uploaded by

api-385142684
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views

Musicsequence

This C header file defines types and function prototypes for a music sequence module based on an events and services framework. It includes event and type definitions, defines enumeration values for different music sequence states, and declares functions for initializing and running the music sequence state machine as well as checking for notes and headphones.

Uploaded by

api-385142684
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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