#ifndef FLAME_H
#define FLAME_H

// the common headers for C99 types 
#include <stdint.h>
#include <stdbool.h>
#include "ES_Configure.h"
#include "ES_Events.h"
#include "ES_Types.h"    /* gets bool type for returns */

#define ALL_BITS (0xff<<2) 

// typedefs for the states in the spigot state machine
// State definitions for use with the query function
typedef enum {  InitialFlame,
								WaitingForStart,
								SameStateLEDs,
								AllLEDsOn,
								SubsetLEDsOn,
								NoLEDsOn} FlameState_t ;

//Public function prototypes
bool InitFlame (uint8_t Priority);
bool PostFlame( ES_Event ThisEvent );
bool CheckFlameEvents(void);
ES_Event RunFlame(ES_Event ThisEvent);
#endif //FLAME_H
