Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NetServices mbed C027_Supports mbed-rpcx
AruChannel.h@1:f7d9b0530b73, 2019-09-11 (annotated)
- Committer:
- aldoao
- Date:
- Wed Sep 11 06:32:20 2019 +0000
- Revision:
- 1:f7d9b0530b73
- Parent:
- 0:64967b7043c2
tipe,1
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| irsanjul | 0:64967b7043c2 | 1 | #ifndef ARUCHANNEL_H |
| irsanjul | 0:64967b7043c2 | 2 | #define ARUCHANNEL_H |
| irsanjul | 0:64967b7043c2 | 3 | |
| irsanjul | 0:64967b7043c2 | 4 | #include "AruFraming.h" |
| irsanjul | 0:64967b7043c2 | 5 | #include "CommChannel.h" |
| irsanjul | 0:64967b7043c2 | 6 | |
| irsanjul | 0:64967b7043c2 | 7 | class AruChannel |
| irsanjul | 0:64967b7043c2 | 8 | { |
| irsanjul | 0:64967b7043c2 | 9 | public: |
| irsanjul | 0:64967b7043c2 | 10 | AruChannel(); |
| irsanjul | 0:64967b7043c2 | 11 | ~AruChannel(); |
| irsanjul | 0:64967b7043c2 | 12 | |
| irsanjul | 0:64967b7043c2 | 13 | int ReceiveCount(); |
| irsanjul | 0:64967b7043c2 | 14 | AruFrm Receive(); |
| irsanjul | 0:64967b7043c2 | 15 | |
| irsanjul | 0:64967b7043c2 | 16 | void Transmit(const AruFrm &f); |
| irsanjul | 0:64967b7043c2 | 17 | |
| irsanjul | 0:64967b7043c2 | 18 | void Process(); |
| 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 | CommChannel COM; |
| irsanjul | 0:64967b7043c2 | 25 | |
| irsanjul | 0:64967b7043c2 | 26 | AruFraming Frm; |
| irsanjul | 0:64967b7043c2 | 27 | std::queue<AruFrm> XMT_QUE; |
| irsanjul | 0:64967b7043c2 | 28 | |
| irsanjul | 0:64967b7043c2 | 29 | int commId; |
| irsanjul | 0:64967b7043c2 | 30 | }; |
| irsanjul | 0:64967b7043c2 | 31 | |
| irsanjul | 0:64967b7043c2 | 32 | #endif // ARUCHANNEL_H |