
Implementatie van de opdracht Round Robin
StateMachine.h
- Committer:
- benboydens
- Date:
- 2020-11-03
- Revision:
- 1:0016a14c76bb
- Parent:
- 0:825bd2920b6d
File content as of revision 1:0016a14c76bb:
#ifndef STATEMACHINE_H #define STATEMACHINE_H #include "EthernetInterface.h" #include "mbed.h" #define MAX_BUFFER_SIZE 64 enum State{INIT, TRANSMIT, RECEIVE, END, CERROR}; class StateMachine { private: State currentState; State startState; void actionInit(); void actionTransmit(); void actionReceive(); EthernetInterface *eth; char ipbytes[4]; char rbuffer[MAX_BUFFER_SIZE]; int rcount; public: StateMachine(); ~StateMachine(); void start(); }; #endif