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

 ****************************************************************************/
 
#ifndef LimitDebounce_H
#define LimitDebounce_H

#include "ES_Configure.h"
#include "ES_Types.h"
#include "ES_Events.h"

// typedefs for the states
// State definitions for use with the query function
typedef enum {Debouncing, Ready2Sample}LimitState_t;

// Public Function Prototypes
bool InitLimitDebounce(uint8_t);
bool PostLimitDebounce(ES_Event_t);
bool CheckLimitEvents(void);
ES_Event_t RunLimitDebounce(ES_Event_t);

#endif