blob: 032f8ef346ab1bfe1c981298d4dff7eeeba2151e [file] [log] [blame]
jerrymf1579332013-02-07 01:56:28 +00001// Copyright (c) National Instruments 2008. All Rights Reserved.
2// Do Not Edit... this file is generated!
3
4#ifndef __nFRC_2012_1_6_4_Watchdog_h__
5#define __nFRC_2012_1_6_4_Watchdog_h__
6
7#include "tSystemInterface.h"
8
9namespace nFPGA
10{
11namespace nFRC_2012_1_6_4
12{
13
14class tWatchdog
15{
16public:
17 tWatchdog(){}
18 virtual ~tWatchdog(){}
19
20 virtual tSystemInterface* getSystemInterface() = 0;
21 static tWatchdog* create(tRioStatusCode *status);
22
23 typedef enum
24 {
25 kNumSystems = 1,
26 } tIfaceConstants;
27
28 typedef
29 union{
30 struct{
31 unsigned SystemActive : 1;
32 unsigned Alive : 1;
33 unsigned SysDisableCount : 15;
34 unsigned DisableCount : 15;
35 };
36 struct{
37 unsigned value : 32;
38 };
39 } tStatus;
40
41
42
43 typedef enum
44 {
45 } tStatus_IfaceConstants;
46
47 virtual tStatus readStatus(tRioStatusCode *status) = 0;
48 virtual bool readStatus_SystemActive(tRioStatusCode *status) = 0;
49 virtual bool readStatus_Alive(tRioStatusCode *status) = 0;
50 virtual unsigned short readStatus_SysDisableCount(tRioStatusCode *status) = 0;
51 virtual unsigned short readStatus_DisableCount(tRioStatusCode *status) = 0;
52
53
54 typedef enum
55 {
56 } tImmortal_IfaceConstants;
57
58 virtual void writeImmortal(bool value, tRioStatusCode *status) = 0;
59 virtual bool readImmortal(tRioStatusCode *status) = 0;
60
61
62 typedef enum
63 {
64 } tKill_IfaceConstants;
65
66 virtual void strobeKill(tRioStatusCode *status) = 0;
67
68
69 typedef enum
70 {
71 } tFeed_IfaceConstants;
72
73 virtual void strobeFeed(tRioStatusCode *status) = 0;
74
75
76 typedef enum
77 {
78 } tExpiration_IfaceConstants;
79
80 virtual void writeExpiration(unsigned int value, tRioStatusCode *status) = 0;
81 virtual unsigned int readExpiration(tRioStatusCode *status) = 0;
82
83
84 typedef enum
85 {
86 } tTimer_IfaceConstants;
87
88 virtual unsigned int readTimer(tRioStatusCode *status) = 0;
89
90
91
92
93private:
94 tWatchdog(const tWatchdog&);
95 void operator=(const tWatchdog&);
96};
97
98}
99}
100
101#endif // __nFRC_2012_1_6_4_Watchdog_h__