12 #define wpi_assert(condition) wpi_assert_impl(condition, #condition, NULL, __FILE__, __LINE__, __FUNCTION__)
13 #define wpi_assertWithMessage(condition, message) wpi_assert_impl(condition, #condition, message, __FILE__, __LINE__, __FUNCTION__)
15 #define wpi_assertEqual(a, b) wpi_assertEqual_impl(a, b, NULL, __FILE__, __LINE__, __FUNCTION__)
16 #define wpi_assertEqualWithMessage(a, b, message) wpi_assertEqual_impl(a, b, message, __FILE__, __LINE__, __FUNCTION__)
18 #define wpi_assertNotEqual(a, b) wpi_assertNotEqual_impl(a, b, NULL, __FILE__, __LINE__, __FUNCTION__)
19 #define wpi_assertNotEqualWithMessage(a, b, message) wpi_assertNotEqual_impl(a, b, message, __FILE__, __LINE__, __FUNCTION__)
21 bool wpi_assert_impl(
bool conditionValue,
const char *conditionText,
const char *message,
const char *fileName, uint32_t lineNumber,
const char *funcName);
22 bool wpi_assertEqual_impl(
int valueA,
int valueB,
const char *message,
const char *fileName,uint32_t lineNumber,
const char *funcName);
23 bool wpi_assertNotEqual_impl(
int valueA,
int valueB,
const char *message,
const char *fileName,uint32_t lineNumber,
const char *funcName);
25 char *wpi_getLabel(UINT addr, int32_t *found = NULL);
27 void wpi_suspendOnAssertEnabled(
bool enabled);
28 void wpi_stackTraceOnAssertEnable(
bool enabled);
30 uint16_t GetFPGAVersion();
31 uint32_t GetFPGARevision();
32 uint32_t GetFPGATime();
33 int32_t GetRIOUserSwitch();
34 void SetRIOUserLED(uint32_t state);
35 int32_t GetRIOUserLED();
36 int32_t ToggleRIOUserLED();
37 void SetRIO_FPGA_LED(uint32_t state);
38 int32_t GetRIO_FPGA_LED();
39 int32_t ToggleRIO_FPGA_LED();