huohuoh
Dependencies: NetServices mbed C027_Supports mbed-rpcx
CommChannel.h@0:64967b7043c2, 2019-08-06 (annotated)
- Committer:
- irsanjul
- Date:
- Tue Aug 06 12:59:05 2019 +0000
- Revision:
- 0:64967b7043c2
testes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
irsanjul | 0:64967b7043c2 | 1 | #ifndef COMMCHANNEL_H |
irsanjul | 0:64967b7043c2 | 2 | #define COMMCHANNEL_H |
irsanjul | 0:64967b7043c2 | 3 | |
irsanjul | 0:64967b7043c2 | 4 | #include <vector> |
irsanjul | 0:64967b7043c2 | 5 | #include <string> |
irsanjul | 0:64967b7043c2 | 6 | |
irsanjul | 0:64967b7043c2 | 7 | class CommChannel |
irsanjul | 0:64967b7043c2 | 8 | { |
irsanjul | 0:64967b7043c2 | 9 | public: |
irsanjul | 0:64967b7043c2 | 10 | CommChannel(); |
irsanjul | 0:64967b7043c2 | 11 | ~CommChannel(); |
irsanjul | 0:64967b7043c2 | 12 | |
irsanjul | 0:64967b7043c2 | 13 | void connect(const std::string &host); |
irsanjul | 0:64967b7043c2 | 14 | |
irsanjul | 0:64967b7043c2 | 15 | int dataAvailable(); |
irsanjul | 0:64967b7043c2 | 16 | std::vector<int> read(); |
irsanjul | 0:64967b7043c2 | 17 | |
irsanjul | 0:64967b7043c2 | 18 | void write(const std::vector<int> &s); |
irsanjul | 0:64967b7043c2 | 19 | |
irsanjul | 0:64967b7043c2 | 20 | void Tick10ms(); |
irsanjul | 0:64967b7043c2 | 21 | |
irsanjul | 0:64967b7043c2 | 22 | private: |
irsanjul | 0:64967b7043c2 | 23 | |
irsanjul | 0:64967b7043c2 | 24 | }; |
irsanjul | 0:64967b7043c2 | 25 | |
irsanjul | 0:64967b7043c2 | 26 | #endif // COMMCHANNEL_H |