/****************************************************************************
 
  Header file for IRBeacon service 
  based on the Gen 2 Events and Services Framework

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

#ifndef IRBeaconService_H
#define IRBeaconService_H

// State definitions for use with the query function
typedef enum { InitializingIRBeaconService, WaitingForInstruction, StartingAlignProcess, FindingEdgeOfBeacon, Aligning } IRBeaconState_t;

// Public Function Prototypes
bool InitIRBeaconService ( uint8_t Priority );
bool PostIRBeaconService( ES_Event_t ThisEvent );
ES_Event_t RunIRBeaconService ( ES_Event_t CurrentEvent );

void InitIRBeaconInterrupt(void);

#endif