/****************************************************************************
Header file for ScoringSM.c
  based on the Gen 2 Events and Services Framework
 ****************************************************************************/
#ifndef ScoringSM_H
#define ScoringSM_H
#include <stdint.h>
#include <stdbool.h>
#include "ES_Events.h"
#define START_SCORE 1000
//defining   thresholds
#define T1   900
#define T2   700
#define T3   300
#define T4   150
// typedefs for the states
// State definitions for use with the query function
typedef enum
{
  PseudoState_Scoring,
  Uninitialized_Scoring,
  GreenLED,
  GreenAndYellowLED,
  YellowLED,
  YellowAndRedLED,
  RedLED,
  WaitForEnding,
}ScoringSM_States_t;
// Public Function Prototypes
bool InitScoringSM(uint8_t Priority);
bool PostScoringSM(ES_Event_t ThisEvent);
ES_Event_t RunScoringSM(ES_Event_t ThisEvent);
int GetScore(void);
#endif /* ScoringSM_H */