Watchdog avec date/time et reporting fonctionnel.
This commit is contained in:
@@ -11,6 +11,11 @@
|
||||
//Parker controller. This controller uses this update as a watchdog signal, but the register contains
|
||||
//some useful data for the Parker controller as well.
|
||||
|
||||
class CMQTTClientWrapper;
|
||||
class CLANDevicesPresenceMonitor;
|
||||
class CInternetMonitor;
|
||||
class CDeviceDetectionConfig;
|
||||
|
||||
class CCANWatchdog: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -18,11 +23,12 @@ class CCANWatchdog: public QObject
|
||||
public:
|
||||
CCANWatchdog();
|
||||
|
||||
int Init(CPCANInterface *CANDriverIF, TPCANHandle CANDeviceHandle, unsigned int WDTPeriod,unsigned int CANMsgID);
|
||||
int StartWDT();
|
||||
int StopWDT();
|
||||
bool IsInitialized(){return mWDTInitialized;}
|
||||
quint64 GetCANDateTimeBuffer();
|
||||
int Init(CPCANInterface *CANDriverIF, TPCANHandle CANDeviceHandle, unsigned int WDTPeriod, CDeviceDetectionConfig *DevicesMonitorConfig);
|
||||
int StartWDT();
|
||||
int StopWDT();
|
||||
bool IsInitialized(){return mWDTInitialized;}
|
||||
quint64 GetCANDateTimeBuffer();
|
||||
int SetDevicesDetectionConfig(CDeviceDetectionConfig *DeviceMonitoringConfig);
|
||||
|
||||
CPCANInterface *mCANDriverIF;
|
||||
unsigned int mWDTPeriod;
|
||||
@@ -30,10 +36,17 @@ public:
|
||||
bool mWDTInitialized;
|
||||
CCANMessage mWDTCANMsg;
|
||||
|
||||
|
||||
|
||||
private:
|
||||
bool mIsCANInitialized;
|
||||
TPCANHandle mCANDeviceHandle;
|
||||
|
||||
// CMQTTClientWrapper *mMQTTPresenceMonitor;
|
||||
// CLANDevicesPresenceMonitor *mLANDevicesMonitor;
|
||||
// CInternetMonitor *mInternetMonitor;
|
||||
CDeviceDetectionConfig *mDevicesMonitorConfig;
|
||||
|
||||
|
||||
public slots:
|
||||
void WatchdogTimeoutTimerExpired();
|
||||
|
||||
Reference in New Issue
Block a user