init
Dependencies: MPU6050 PinDetect circular_buffer
Diff: CaseFSM/include/CaseState.h
- Revision:
- 0:b416214256cd
diff -r 000000000000 -r b416214256cd CaseFSM/include/CaseState.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CaseFSM/include/CaseState.h Tue Nov 07 16:35:14 2017 +0000 @@ -0,0 +1,21 @@ +#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_ */