asdasdasdasd
Dependencies: Audio EthernetInterface mbed-rtos mbed
Fork of FRDM_TCP_v4_copy by
CommChannel.h@11:9280da8e40bd, 2018-08-10 (annotated)
- Committer:
- irsanjul
- Date:
- Fri Aug 10 09:12:27 2018 +0000
- Revision:
- 11:9280da8e40bd
asdasdas
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
irsanjul | 11:9280da8e40bd | 1 | #ifndef COMMCHANNEL_H |
irsanjul | 11:9280da8e40bd | 2 | #define COMMCHANNEL_H |
irsanjul | 11:9280da8e40bd | 3 | |
irsanjul | 11:9280da8e40bd | 4 | #include <vector> |
irsanjul | 11:9280da8e40bd | 5 | #include <string> |
irsanjul | 11:9280da8e40bd | 6 | |
irsanjul | 11:9280da8e40bd | 7 | class CommChannel |
irsanjul | 11:9280da8e40bd | 8 | { |
irsanjul | 11:9280da8e40bd | 9 | public: |
irsanjul | 11:9280da8e40bd | 10 | CommChannel(); |
irsanjul | 11:9280da8e40bd | 11 | ~CommChannel(); |
irsanjul | 11:9280da8e40bd | 12 | |
irsanjul | 11:9280da8e40bd | 13 | void connect(const std::string &host); |
irsanjul | 11:9280da8e40bd | 14 | |
irsanjul | 11:9280da8e40bd | 15 | int dataAvailable(); |
irsanjul | 11:9280da8e40bd | 16 | std::vector<int> read(); |
irsanjul | 11:9280da8e40bd | 17 | |
irsanjul | 11:9280da8e40bd | 18 | void write(const std::vector<int> &s); |
irsanjul | 11:9280da8e40bd | 19 | void write(char *s, int sz); |
irsanjul | 11:9280da8e40bd | 20 | |
irsanjul | 11:9280da8e40bd | 21 | void Tick10ms(); |
irsanjul | 11:9280da8e40bd | 22 | |
irsanjul | 11:9280da8e40bd | 23 | private: |
irsanjul | 11:9280da8e40bd | 24 | |
irsanjul | 11:9280da8e40bd | 25 | }; |
irsanjul | 11:9280da8e40bd | 26 | |
irsanjul | 11:9280da8e40bd | 27 | #endif // COMMCHANNEL_H |