WPILib 2012
WPILibRoboticsLibraryforFRC
CInterfaces/CWatchdog.h
00001 /*----------------------------------------------------------------------------*/
00002 /* Copyright (c) FIRST 2008. All Rights Reserved.                                                         */
00003 /* Open Source Software - may be modified and shared by FRC teams. The code   */
00004 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib.  */
00005 /*----------------------------------------------------------------------------*/
00006 
00007 #ifndef C_WATCHDOG_H
00008 #define C_WATCHDOG_H
00009 
00010 typedef void *WatchdogObject;
00011 
00012 WatchdogObject CreateWatchdog();
00013 void DeleteWatchdog(WatchdogObject o);
00014 bool FeedWatchdog(WatchdogObject o);
00015 void KillWatchdog(WatchdogObject o);
00016 double GetWatchdogTimer(WatchdogObject o);
00017 double GetWatchdogExpiration(WatchdogObject o);
00018 void SetWatchdogExpiration(WatchdogObject o, double expiration);
00019 bool GetWatchdogEnabled(WatchdogObject o);
00020 void SetWatchdogEnabled(WatchdogObject o, bool enabled);
00021 bool IsWatchdogAlive(WatchdogObject o);
00022 bool IsWatchdogSystemActive(WatchdogObject o);
00023 
00024 void LoadWatchdog();
00025 
00026 #endif
00027 
 All Classes Functions Variables