Suad Suljic / Mbed OS KOPIRANO_cell_locker

Dependencies:   MPU6050_SIM5320_TEST

Fork of MPU_SDCARD by Suad Suljic

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers State.h Source File

State.h

00001 #ifndef FSM_STATE_H_
00002 #define FSM_STATE_H_
00003 #include "mbed.h"
00004 struct Stop;
00005 struct Move;
00006 
00007 class FsmStates;
00008 
00009 class State {
00010   public:
00011   State(FsmStates& state, Timer& timer);
00012   virtual State* handle(Stop& event);
00013   virtual State* handle(Move& event);
00014   virtual ~State() {}
00015 
00016   protected:
00017   FsmStates& states_;
00018   Timer& stateTimer_;
00019 };
00020 #endif /* ifndef FSM_STATE_H_ */