init

Dependencies:   MPU6050 PinDetect circular_buffer

CaseFSM/include/CaseState.h

Committer:
OsmanKameric
Date:
2017-11-07
Revision:
0:b416214256cd

File content as of revision 0:b416214256cd:

#ifndef CASEFSM_STATE_H_
#define CASEFSM_STATE_H_
#include "mbed.h"
struct SwitchPosition;
struct RFIDEvent;
struct TimerEnd;
class CaseFsmStates;

class CaseState {
  public:
  CaseState(CaseFsmStates& state, Timer& timer);
  virtual CaseState* handle(SwitchPosition& event);
  virtual CaseState* handle(RFIDEvent& event);
  virtual CaseState* handle(TimerEnd& event);
  virtual ~CaseState() {}

  protected:
  CaseFsmStates& states_;
  Timer& stateTimer_;
};
#endif /* ifndef CASEFSM_STATE_H_ */