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
- Committer:
- kikuchi8810
- Date:
- 2021-12-23
- Revision:
- 1:6633661058ec
- Parent:
- 0:a33375289d79
File content as of revision 1:6633661058ec:
#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 isAvailable(int _device_num);
bool isAllAvailable(void);
private:
Comminfo comminfo[10];
int device_num;
};
#endif