mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
Add a method to detect the HAL runtime version (#228)
This commit is contained in:
committed by
Peter Johnson
parent
1416fb8f67
commit
2ecb939b35
@@ -38,6 +38,11 @@
|
||||
|
||||
namespace HALUsageReporting = nUsageReporting;
|
||||
|
||||
enum HAL_RuntimeType : int32_t {
|
||||
HAL_Athena,
|
||||
HAL_Mock
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -49,6 +54,7 @@ int32_t HAL_GetFPGAVersion(int32_t* status);
|
||||
int64_t HAL_GetFPGARevision(int32_t* status);
|
||||
uint64_t HAL_GetFPGATime(int32_t* status);
|
||||
|
||||
HAL_RuntimeType HAL_GetRuntimeType();
|
||||
HAL_Bool HAL_GetFPGAButton(int32_t* status);
|
||||
|
||||
HAL_Bool HAL_GetSystemActive(int32_t* status);
|
||||
|
||||
Reference in New Issue
Block a user