![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
demo versie 16/05
Dependencies: EthernetInterface mbed-rto mbed
Fork of ProjectVLC by
Receiver.h@75:31c15986b85e, 2018-05-15 (annotated)
- Committer:
- KlaasGovaerts
- Date:
- Tue May 15 21:44:25 2018 +0000
- Revision:
- 75:31c15986b85e
- Parent:
- 31:915f6cb7ffa5
- Child:
- 76:c0c7c3f37be2
Added documentation.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
KlaasGovaerts | 28:bf62c46acb3e | 1 | #include "rtos.h" |
KlaasGovaerts | 30:996da48a265c | 2 | #include "Interpreter.h" |
KlaasGovaerts | 30:996da48a265c | 3 | #include "TCPlistener.h" |
KlaasGovaerts | 28:bf62c46acb3e | 4 | |
KlaasGovaerts | 28:bf62c46acb3e | 5 | #ifndef RECEIVER_H |
KlaasGovaerts | 28:bf62c46acb3e | 6 | #define RECEIVER_H |
KlaasGovaerts | 28:bf62c46acb3e | 7 | class Receiver{ |
KlaasGovaerts | 28:bf62c46acb3e | 8 | private: |
KlaasGovaerts | 31:915f6cb7ffa5 | 9 | Queue<int,8>* queue; |
KlaasGovaerts | 30:996da48a265c | 10 | Interpreter interpreter; |
KlaasGovaerts | 30:996da48a265c | 11 | TCPlistener listener; |
KlaasGovaerts | 30:996da48a265c | 12 | char command[512]; |
KlaasGovaerts | 28: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 | 31: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 | 30:996da48a265c | 23 | void start(); |
KlaasGovaerts | 28:bf62c46acb3e | 24 | }; |
KlaasGovaerts | 28:bf62c46acb3e | 25 | #endif |