Now you can download a copy of these docs so you can use them offline! Download now
Watchdog.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2008. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
5 /*----------------------------------------------------------------------------*/
6 
7 #ifndef WATCHDOG_H
8 #define WATCHDOG_H
9 
10 #include "ChipObject.h"
11 #include "SensorBase.h"
12 #include "Base.h"
13 
25 class Watchdog : public SensorBase
26 {
27 public:
28  static constexpr double kDefaultWatchdogExpiration = 0.5;
29 
30  Watchdog();
31  virtual ~Watchdog();
32  bool Feed();
33  void Kill();
34  double GetTimer();
35  double GetExpiration();
36  void SetExpiration(double expiration);
37  bool GetEnabled();
38  void SetEnabled(bool enabled);
39  bool IsAlive();
40  bool IsSystemActive();
41 
42 private:
43  tWatchdog *m_fpgaWatchDog;
44  DISALLOW_COPY_AND_ASSIGN(Watchdog);
45 };
46 
47 #endif
double GetTimer()
Definition: Watchdog.cpp:73
bool IsSystemActive()
Definition: Watchdog.cpp:163
void SetExpiration(double expiration)
Definition: Watchdog.cpp:99
Watchdog()
Definition: Watchdog.cpp:14
void Kill()
Definition: Watchdog.cpp:61
void SetEnabled(bool enabled)
Definition: Watchdog.cpp:131
bool Feed()
Definition: Watchdog.cpp:46
virtual ~Watchdog()
Definition: Watchdog.cpp:27
bool GetEnabled()
Definition: Watchdog.cpp:111
double GetExpiration()
Definition: Watchdog.cpp:86
bool IsAlive()
Definition: Watchdog.cpp:150

Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by doxygen 1.8.6