2017-06-30 18:58:58 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2020-02-18 20:44:40 -08:00
|
|
|
/* Copyright (c) 2017-2020 FIRST. All Rights Reserved. */
|
2017-06-30 18:58:58 -07:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2018-07-26 01:30:29 -07:00
|
|
|
#include "hal/Types.h"
|
|
|
|
|
|
2017-06-30 18:58:58 -07:00
|
|
|
extern "C" {
|
2017-08-18 21:35:53 -07:00
|
|
|
void HALSIM_WaitForProgramStart(void);
|
|
|
|
|
void HALSIM_SetProgramStarted(void);
|
2018-07-26 01:30:29 -07:00
|
|
|
HAL_Bool HALSIM_GetProgramStarted(void);
|
2017-08-18 21:35:53 -07:00
|
|
|
void HALSIM_RestartTiming(void);
|
2019-11-10 20:54:25 -08:00
|
|
|
void HALSIM_PauseTiming(void);
|
|
|
|
|
void HALSIM_ResumeTiming(void);
|
|
|
|
|
HAL_Bool HALSIM_IsTimingPaused(void);
|
|
|
|
|
void HALSIM_StepTiming(uint64_t delta);
|
2019-06-23 11:48:04 -07:00
|
|
|
|
|
|
|
|
typedef int32_t (*HALSIM_SendErrorHandler)(
|
|
|
|
|
HAL_Bool isError, int32_t errorCode, HAL_Bool isLVCode, const char* details,
|
|
|
|
|
const char* location, const char* callStack, HAL_Bool printMsg);
|
|
|
|
|
void HALSIM_SetSendError(HALSIM_SendErrorHandler handler);
|
|
|
|
|
|
2020-02-18 20:44:40 -08:00
|
|
|
typedef int32_t (*HALSIM_SendConsoleLineHandler)(const char* line);
|
|
|
|
|
void HALSIM_SetSendConsoleLine(HALSIM_SendConsoleLineHandler handler);
|
|
|
|
|
|
2017-10-16 19:56:08 -07:00
|
|
|
} // extern "C"
|