12 #include "hal/Types.h"
21 HAL_ENUM(HAL_RuntimeType) { HAL_Athena, HAL_Mock };
57 HAL_RuntimeType HAL_GetRuntimeType(
void);
HAL_PortHandle HAL_GetPortWithModule(int32_t module, int32_t channel)
Gets a port handle for a specific channel and module.
HAL_Bool HAL_GetFPGAButton(int32_t *status)
Gets the state of the "USER" button on the roboRIO.
int64_t HAL_GetFPGARevision(int32_t *status)
Returns the FPGA Revision number.
uint64_t HAL_ExpandFPGATime(uint32_t unexpanded_lower, int32_t *status)
Given an 32 bit FPGA time, expand it to the nearest likely 64 bit FPGA time.
HAL_Bool HAL_GetSystemActive(int32_t *status)
Gets if the system outputs are currently active.
uint64_t HAL_GetFPGATime(int32_t *status)
Reads the microsecond-resolution timer on the FPGA.
HAL_Bool HAL_GetBrownedOut(int32_t *status)
Gets if the system is in a browned out state.
HAL_Bool HAL_Initialize(int32_t timeout, int32_t mode)
Call this to start up HAL.
HAL_PortHandle HAL_GetPort(int32_t channel)
Gets a port handle for a specific channel.
int32_t HAL_GetFPGAVersion(int32_t *status)
Returns the FPGA Version number.
const char * HAL_GetErrorMessage(int32_t code)
Gets the error message for a specific status code.