WPILibC++  2020.3.2
MockHooks.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2017-2020 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include "hal/Types.h"
11 
12 extern "C" {
13 void HALSIM_WaitForProgramStart(void);
14 void HALSIM_SetProgramStarted(void);
15 HAL_Bool HALSIM_GetProgramStarted(void);
16 void HALSIM_RestartTiming(void);
17 void HALSIM_PauseTiming(void);
18 void HALSIM_ResumeTiming(void);
19 HAL_Bool HALSIM_IsTimingPaused(void);
20 void HALSIM_StepTiming(uint64_t delta);
21 
22 typedef int32_t (*HALSIM_SendErrorHandler)(
23  HAL_Bool isError, int32_t errorCode, HAL_Bool isLVCode, const char* details,
24  const char* location, const char* callStack, HAL_Bool printMsg);
25 void HALSIM_SetSendError(HALSIM_SendErrorHandler handler);
26 
27 typedef int32_t (*HALSIM_SendConsoleLineHandler)(const char* line);
28 void HALSIM_SetSendConsoleLine(HALSIM_SendConsoleLineHandler handler);
29 
30 } // extern "C"