First version

Dependencies:   mbed EthernetInterface mbed-rto

Committer:
KlaasGovaerts
Date:
Tue May 15 21:44:25 2018 +0000
Revision:
75:31c15986b85e
Parent:
30:915f6cb7ffa5
Child:
76:c0c7c3f37be2
Added documentation.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
KlaasGovaerts 24:bf62c46acb3e 1 #include "rtos.h"
KlaasGovaerts 29:996da48a265c 2 #include "Interpreter.h"
KlaasGovaerts 29:996da48a265c 3 #include "TCPlistener.h"
KlaasGovaerts 24:bf62c46acb3e 4
KlaasGovaerts 24:bf62c46acb3e 5 #ifndef RECEIVER_H
KlaasGovaerts 24:bf62c46acb3e 6 #define RECEIVER_H
KlaasGovaerts 24:bf62c46acb3e 7 class Receiver{
KlaasGovaerts 24:bf62c46acb3e 8 private:
KlaasGovaerts 30:915f6cb7ffa5 9 Queue<int,8>* queue;
KlaasGovaerts 29:996da48a265c 10 Interpreter interpreter;
KlaasGovaerts 29:996da48a265c 11 TCPlistener listener;
KlaasGovaerts 29:996da48a265c 12 char command[512];
KlaasGovaerts 24:bf62c46acb3e 13 public:
KlaasGovaerts 75:31c15986b85e 14 /**
KlaasGovaerts 75:31c15986b85e 15 *@param queue The queue where received and interpreted commands will we pushed.
KlaasGovaerts 75:31c15986b85e 16 */
KlaasGovaerts 30:915f6cb7ffa5 17 Receiver(Queue<int,8>* queue);
KlaasGovaerts 75:31c15986b85e 18
KlaasGovaerts 75:31c15986b85e 19 /**
KlaasGovaerts 75:31c15986b85e 20 *Start a loop that will receive packets, and push their contents on the queue.
KlaasGovaerts 75:31c15986b85e 21 *This method should be called last.
KlaasGovaerts 75:31c15986b85e 22 */
KlaasGovaerts 29:996da48a265c 23 void start();
KlaasGovaerts 24:bf62c46acb3e 24 };
KlaasGovaerts 24:bf62c46acb3e 25 #endif