| 1234567891011121314151617181920212223242526272829303132333435363738 |
- /////////////////////////////////////////////////////////////////////////////////
- /// Copyright (c) 2012 China Merchants Bank, all rights reserved ///
- /// Adapter Interface for WatchDog. ///
- /// ///
- /////////////////////////////////////////////////////////////////////////////////
- #ifndef __WATCHDOG_CLASS_H
- #define __WATCHDOG_CLASS_H
- #pragma once
- #include "DeviceBaseClass.h"
- class WatchDogClass : public DeviceBaseClass
- {
- public:
- //
- // Initialization,make preparation for working.
- //
- virtual ErrorCodeEnum DevOpen() = 0;
- //
- // Conifgure watchdog.
- // Watchdog start to work in [dwDelay] second.It must be feed in every [dwTimeout]
- // period or it will restart the computer.
- // Arguments:
- // - dwDelay:time to start watching(in second)
- // - dwTimeout:max time period to feed dog(in second)
- //
- virtual ErrorCodeEnum StartWatch(DWORD dwDelay,DWORD dwTimeout) = 0;
- //
- // Stop watchdog.
- //
- virtual ErrorCodeEnum StopWatch() = 0;
- //
- // Feed watchdog.
- //
- virtual ErrorCodeEnum RefreshDog() = 0;
- };
- #endif //__WATCHDOG_CLASS_H
|