WPILib 2012
WPILibRoboticsLibraryforFRC
|
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_Interrupt_h__ 00005 #define __nFRC_2012_1_6_4_Interrupt_h__ 00006 00007 #include "tSystemInterface.h" 00008 00009 namespace nFPGA 00010 { 00011 namespace nFRC_2012_1_6_4 00012 { 00013 00014 class tInterrupt 00015 { 00016 public: 00017 tInterrupt(){} 00018 virtual ~tInterrupt(){} 00019 00020 virtual tSystemInterface* getSystemInterface() = 0; 00021 static tInterrupt* create(unsigned char sys_index, tRioStatusCode *status); 00022 virtual unsigned char getSystemIndex() = 0; 00023 00024 00025 typedef enum 00026 { 00027 kNumSystems = 8, 00028 } tIfaceConstants; 00029 00030 typedef 00031 union{ 00032 struct{ 00033 unsigned Source_Channel : 4; 00034 unsigned Source_Module : 1; 00035 unsigned Source_AnalogTrigger : 1; 00036 unsigned RisingEdge : 1; 00037 unsigned FallingEdge : 1; 00038 unsigned WaitForAck : 1; 00039 }; 00040 struct{ 00041 unsigned value : 9; 00042 }; 00043 } tConfig; 00044 00045 00046 typedef enum 00047 { 00048 } tTimeStamp_IfaceConstants; 00049 00050 virtual unsigned int readTimeStamp(tRioStatusCode *status) = 0; 00051 00052 00053 typedef enum 00054 { 00055 } tConfig_IfaceConstants; 00056 00057 virtual void writeConfig(tConfig value, tRioStatusCode *status) = 0; 00058 virtual void writeConfig_Source_Channel(unsigned char value, tRioStatusCode *status) = 0; 00059 virtual void writeConfig_Source_Module(unsigned char value, tRioStatusCode *status) = 0; 00060 virtual void writeConfig_Source_AnalogTrigger(bool value, tRioStatusCode *status) = 0; 00061 virtual void writeConfig_RisingEdge(bool value, tRioStatusCode *status) = 0; 00062 virtual void writeConfig_FallingEdge(bool value, tRioStatusCode *status) = 0; 00063 virtual void writeConfig_WaitForAck(bool value, tRioStatusCode *status) = 0; 00064 virtual tConfig readConfig(tRioStatusCode *status) = 0; 00065 virtual unsigned char readConfig_Source_Channel(tRioStatusCode *status) = 0; 00066 virtual unsigned char readConfig_Source_Module(tRioStatusCode *status) = 0; 00067 virtual bool readConfig_Source_AnalogTrigger(tRioStatusCode *status) = 0; 00068 virtual bool readConfig_RisingEdge(tRioStatusCode *status) = 0; 00069 virtual bool readConfig_FallingEdge(tRioStatusCode *status) = 0; 00070 virtual bool readConfig_WaitForAck(tRioStatusCode *status) = 0; 00071 00072 00073 00074 00075 00076 private: 00077 tInterrupt(const tInterrupt&); 00078 void operator=(const tInterrupt&); 00079 }; 00080 00081 } 00082 } 00083 00084 #endif // __nFRC_2012_1_6_4_Interrupt_h__