Home
Roadside
Carputer
geoHist
software
FRC
Blog
Now you can download a copy of these docs so you can use them offline!
Download now
Main Page
Related Pages
Classes
Files
File List
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
Watchdog::GetTimer
double GetTimer()
Definition:
Watchdog.cpp:73
Watchdog::IsSystemActive
bool IsSystemActive()
Definition:
Watchdog.cpp:163
Watchdog::SetExpiration
void SetExpiration(double expiration)
Definition:
Watchdog.cpp:99
Watchdog::Watchdog
Watchdog()
Definition:
Watchdog.cpp:14
Watchdog::Kill
void Kill()
Definition:
Watchdog.cpp:61
Watchdog::SetEnabled
void SetEnabled(bool enabled)
Definition:
Watchdog.cpp:131
Watchdog::Feed
bool Feed()
Definition:
Watchdog.cpp:46
Watchdog
Definition:
Watchdog.h:25
Watchdog::~Watchdog
virtual ~Watchdog()
Definition:
Watchdog.cpp:27
SensorBase
Definition:
SensorBase.h:20
Watchdog::GetEnabled
bool GetEnabled()
Definition:
Watchdog.cpp:111
Watchdog::GetExpiration
double GetExpiration()
Definition:
Watchdog.cpp:86
Watchdog::IsAlive
bool IsAlive()
Definition:
Watchdog.cpp:150
Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by
1.8.6
© 2006-2009 Dustin Spicuzza. All rights reserved.
Powered by Onnac
I do not condone or encourage graffiti. Please paint responsibly.