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.
Diff: CommunicationMonitoring.h
- Revision:
- 0:a33375289d79
- Child:
- 1:6633661058ec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CommunicationMonitoring.h Wed Dec 22 11:15:12 2021 +0000
@@ -0,0 +1,33 @@
+#ifndef COMMUNICATIONMONITORING_H
+#define COMMUNICATIONMONITORING_H
+
+#include "mbed.h"
+
+struct Comminfo
+{
+ int time_out_ms;
+ int int_time_ms;
+ bool Available;
+ int count_ms;
+ int pre_count_ms;
+};
+
+
+class CommunicationMonitoring
+{
+ public:
+ CommunicationMonitoring();
+
+ int init(int _time_out_ms, int _int_time_ms);
+ void Monitoring(bool commCheck, int _device_num);
+ bool getAvailable(int _device_num);
+
+ private:
+
+ Comminfo comminfo[10];
+ int device_num;
+
+};
+
+#endif
+