mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
This is a major restructuring of the WPILib repository to simply build procedures and remove the remnants of Maven from everything except the eclipse plugins. Gradle files have been largely simplified or rewritten, taking advantage of splitting up parts of the build into separate build files for ease of reading. The eclipse plugins are now in a separate project, as is ntcore. All dependencies are resolved via Maven dependencies, with the Jenkins-maintained WPILib repo. Project structures have also been simplified: we no longer have separate subprojects inside wpilibc and wpilibj. Where possible, these changes hav been done with git renames, to make sure we still have full history for all repositories. Other unrelated subprojects have also been broken out: OutlineViewer is now a separate project. Change-Id: Ib4e2a6e1a2f66427a14f16612b0e0d69ed661878
58 lines
1.4 KiB
C++
58 lines
1.4 KiB
C++
|
|
#ifndef __LoadOut_h__
|
|
#define __LoadOut_h__
|
|
|
|
#ifdef SIMULATION
|
|
#include <vxWorks_compat.h>
|
|
#define EXPORT_FUNC __declspec(dllexport) __cdecl
|
|
#else
|
|
#include <stdint.h>
|
|
#define EXPORT_FUNC
|
|
#endif
|
|
|
|
#define kMaxModuleNumber 2
|
|
namespace nLoadOut {
|
|
#if defined(SIMULATION)
|
|
typedef enum {
|
|
kModuleType_Unknown = 0x00,
|
|
kModuleType_Analog = 0x01,
|
|
kModuleType_Digital = 0x02,
|
|
kModuleType_Solenoid = 0x03,
|
|
} tModuleType;
|
|
bool EXPORT_FUNC
|
|
getModulePresence(tModuleType moduleType, uint8_t moduleNumber);
|
|
#endif
|
|
typedef enum {
|
|
kTargetClass_Unknown = 0x00,
|
|
kTargetClass_FRC1 = 0x10,
|
|
kTargetClass_FRC2 = 0x20,
|
|
kTargetClass_FRC3 = 0x30,
|
|
kTargetClass_RoboRIO = 0x40,
|
|
#if defined(SIMULATION)
|
|
kTargetClass_FRC2_Analog = kTargetClass_FRC2 | kModuleType_Analog,
|
|
kTargetClass_FRC2_Digital = kTargetClass_FRC2 | kModuleType_Digital,
|
|
kTargetClass_FRC2_Solenoid = kTargetClass_FRC2 | kModuleType_Solenoid,
|
|
#endif
|
|
kTargetClass_FamilyMask = 0xF0,
|
|
kTargetClass_ModuleMask = 0x0F,
|
|
} tTargetClass;
|
|
tTargetClass EXPORT_FUNC getTargetClass();
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#if defined(SIMULATION)
|
|
uint32_t EXPORT_FUNC
|
|
FRC_NetworkCommunication_nLoadOut_getModulePresence(uint32_t moduleType,
|
|
uint8_t moduleNumber);
|
|
#endif
|
|
uint32_t EXPORT_FUNC FRC_NetworkCommunication_nLoadOut_getTargetClass();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // __LoadOut_h__
|