WPILib 2012
WPILibRoboticsLibraryforFRC
ChipObject/tWatchdog.h
00001 // Copyright (c) National Instruments 2008.  All Rights Reserved.
00002 // Do Not Edit... this file is generated!
00003 
00004 #ifndef __nFRC_2012_1_6_4_Watchdog_h__
00005 #define __nFRC_2012_1_6_4_Watchdog_h__
00006 
00007 #include "tSystemInterface.h"
00008 
00009 namespace nFPGA
00010 {
00011 namespace nFRC_2012_1_6_4
00012 {
00013 
00014 class tWatchdog
00015 {
00016 public:
00017    tWatchdog(){}
00018    virtual ~tWatchdog(){}
00019 
00020    virtual tSystemInterface* getSystemInterface() = 0;
00021    static tWatchdog* create(tRioStatusCode *status);
00022 
00023    typedef enum
00024    {
00025       kNumSystems = 1,
00026    } tIfaceConstants;
00027 
00028    typedef
00029    union{
00030       struct{
00031          unsigned SystemActive : 1;
00032          unsigned Alive : 1;
00033          unsigned SysDisableCount : 15;
00034          unsigned DisableCount : 15;
00035       };
00036       struct{
00037          unsigned value : 32;
00038       };
00039    } tStatus;
00040 
00041 
00042 
00043    typedef enum
00044    {
00045    } tStatus_IfaceConstants;
00046 
00047    virtual tStatus readStatus(tRioStatusCode *status) = 0;
00048    virtual bool readStatus_SystemActive(tRioStatusCode *status) = 0;
00049    virtual bool readStatus_Alive(tRioStatusCode *status) = 0;
00050    virtual unsigned short readStatus_SysDisableCount(tRioStatusCode *status) = 0;
00051    virtual unsigned short readStatus_DisableCount(tRioStatusCode *status) = 0;
00052 
00053 
00054    typedef enum
00055    {
00056    } tImmortal_IfaceConstants;
00057 
00058    virtual void writeImmortal(bool value, tRioStatusCode *status) = 0;
00059    virtual bool readImmortal(tRioStatusCode *status) = 0;
00060 
00061 
00062    typedef enum
00063    {
00064    } tKill_IfaceConstants;
00065 
00066    virtual void strobeKill(tRioStatusCode *status) = 0;
00067 
00068 
00069    typedef enum
00070    {
00071    } tFeed_IfaceConstants;
00072 
00073    virtual void strobeFeed(tRioStatusCode *status) = 0;
00074 
00075 
00076    typedef enum
00077    {
00078    } tExpiration_IfaceConstants;
00079 
00080    virtual void writeExpiration(unsigned int value, tRioStatusCode *status) = 0;
00081    virtual unsigned int readExpiration(tRioStatusCode *status) = 0;
00082 
00083 
00084    typedef enum
00085    {
00086    } tTimer_IfaceConstants;
00087 
00088    virtual unsigned int readTimer(tRioStatusCode *status) = 0;
00089 
00090 
00091 
00092 
00093 private:
00094    tWatchdog(const tWatchdog&);
00095    void operator=(const tWatchdog&);
00096 };
00097 
00098 }
00099 }
00100 
00101 #endif // __nFRC_2012_1_6_4_Watchdog_h__
 All Classes Functions Variables