WPILib 2012
WPILibRoboticsLibraryforFRC
|
00001 00002 #ifndef __LoadOut_h__ 00003 #define __LoadOut_h__ 00004 00005 #define kMaxModuleNumber 2 00006 namespace nLoadOut 00007 { 00008 typedef enum { 00009 kModuleType_Unknown = 0x00, 00010 kModuleType_Analog = 0x01, 00011 kModuleType_Digital = 0x02, 00012 kModuleType_Solenoid = 0x03, 00013 } tModuleType; 00014 bool getModulePresence(tModuleType moduleType, UINT8 moduleNumber); 00015 typedef enum { 00016 kTargetClass_Unknown = 0x00, 00017 kTargetClass_FRC1 = 0x10, 00018 kTargetClass_FRC2 = 0x20, 00019 kTargetClass_FRC2_Analog = kTargetClass_FRC2 | kModuleType_Analog, 00020 kTargetClass_FRC2_Digital = kTargetClass_FRC2 | kModuleType_Digital, 00021 kTargetClass_FRC2_Solenoid = kTargetClass_FRC2 | kModuleType_Solenoid, 00022 kTargetClass_FamilyMask = 0xF0, 00023 kTargetClass_ModuleMask = 0x0F, 00024 } tTargetClass; 00025 tTargetClass getTargetClass(); 00026 } 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00032 UINT32 FRC_NetworkCommunication_nLoadOut_getModulePresence(UINT32 moduleType, UINT8 moduleNumber); 00033 UINT32 FRC_NetworkCommunication_nLoadOut_getTargetClass(); 00034 00035 #ifdef __cplusplus 00036 } 00037 #endif 00038 00039 #endif // __LoadOut_h__