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.
CommunicationMonitoring.h@0:a33375289d79, 2021-12-22 (annotated)
- Committer:
- kikuchi8810
- Date:
- Wed Dec 22 11:15:12 2021 +0000
- Revision:
- 0:a33375289d79
- Child:
- 1:6633661058ec
CommunicationMonitoring Class
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| kikuchi8810 | 0:a33375289d79 | 1 | #ifndef COMMUNICATIONMONITORING_H |
| kikuchi8810 | 0:a33375289d79 | 2 | #define COMMUNICATIONMONITORING_H |
| kikuchi8810 | 0:a33375289d79 | 3 | |
| kikuchi8810 | 0:a33375289d79 | 4 | #include "mbed.h" |
| kikuchi8810 | 0:a33375289d79 | 5 | |
| kikuchi8810 | 0:a33375289d79 | 6 | struct Comminfo |
| kikuchi8810 | 0:a33375289d79 | 7 | { |
| kikuchi8810 | 0:a33375289d79 | 8 | int time_out_ms; |
| kikuchi8810 | 0:a33375289d79 | 9 | int int_time_ms; |
| kikuchi8810 | 0:a33375289d79 | 10 | bool Available; |
| kikuchi8810 | 0:a33375289d79 | 11 | int count_ms; |
| kikuchi8810 | 0:a33375289d79 | 12 | int pre_count_ms; |
| kikuchi8810 | 0:a33375289d79 | 13 | }; |
| kikuchi8810 | 0:a33375289d79 | 14 | |
| kikuchi8810 | 0:a33375289d79 | 15 | |
| kikuchi8810 | 0:a33375289d79 | 16 | class CommunicationMonitoring |
| kikuchi8810 | 0:a33375289d79 | 17 | { |
| kikuchi8810 | 0:a33375289d79 | 18 | public: |
| kikuchi8810 | 0:a33375289d79 | 19 | CommunicationMonitoring(); |
| kikuchi8810 | 0:a33375289d79 | 20 | |
| kikuchi8810 | 0:a33375289d79 | 21 | int init(int _time_out_ms, int _int_time_ms); |
| kikuchi8810 | 0:a33375289d79 | 22 | void Monitoring(bool commCheck, int _device_num); |
| kikuchi8810 | 0:a33375289d79 | 23 | bool getAvailable(int _device_num); |
| kikuchi8810 | 0:a33375289d79 | 24 | |
| kikuchi8810 | 0:a33375289d79 | 25 | private: |
| kikuchi8810 | 0:a33375289d79 | 26 | |
| kikuchi8810 | 0:a33375289d79 | 27 | Comminfo comminfo[10]; |
| kikuchi8810 | 0:a33375289d79 | 28 | int device_num; |
| kikuchi8810 | 0:a33375289d79 | 29 | |
| kikuchi8810 | 0:a33375289d79 | 30 | }; |
| kikuchi8810 | 0:a33375289d79 | 31 | |
| kikuchi8810 | 0:a33375289d79 | 32 | #endif |
| kikuchi8810 | 0:a33375289d79 | 33 |