init

Dependencies:   MPU6050 PinDetect circular_buffer

Committer:
OsmanKameric
Date:
Tue Nov 07 16:35:14 2017 +0000
Revision:
0:b416214256cd
FIRST

Who changed what in which revision?

UserRevisionLine numberNew contents of line
OsmanKameric 0:b416214256cd 1 #ifndef CASEFSM_STATE_H_
OsmanKameric 0:b416214256cd 2 #define CASEFSM_STATE_H_
OsmanKameric 0:b416214256cd 3 #include "mbed.h"
OsmanKameric 0:b416214256cd 4 struct SwitchPosition;
OsmanKameric 0:b416214256cd 5 struct RFIDEvent;
OsmanKameric 0:b416214256cd 6 struct TimerEnd;
OsmanKameric 0:b416214256cd 7 class CaseFsmStates;
OsmanKameric 0:b416214256cd 8
OsmanKameric 0:b416214256cd 9 class CaseState {
OsmanKameric 0:b416214256cd 10 public:
OsmanKameric 0:b416214256cd 11 CaseState(CaseFsmStates& state, Timer& timer);
OsmanKameric 0:b416214256cd 12 virtual CaseState* handle(SwitchPosition& event);
OsmanKameric 0:b416214256cd 13 virtual CaseState* handle(RFIDEvent& event);
OsmanKameric 0:b416214256cd 14 virtual CaseState* handle(TimerEnd& event);
OsmanKameric 0:b416214256cd 15 virtual ~CaseState() {}
OsmanKameric 0:b416214256cd 16
OsmanKameric 0:b416214256cd 17 protected:
OsmanKameric 0:b416214256cd 18 CaseFsmStates& states_;
OsmanKameric 0:b416214256cd 19 Timer& stateTimer_;
OsmanKameric 0:b416214256cd 20 };
OsmanKameric 0:b416214256cd 21 #endif /* ifndef CASEFSM_STATE_H_ */