WPILibC++ 2024.3.2
MockHooks.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
7#include "hal/HALBase.h"
8#include "hal/Types.h"
9
10extern "C" {
19void HALSIM_StepTiming(uint64_t delta);
20void HALSIM_StepTimingAsync(uint64_t delta);
21
22typedef 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);
26
27typedef int32_t (*HALSIM_SendConsoleLineHandler)(const char* line);
29
30typedef void (*HALSIM_SimPeriodicCallback)(void* param);
32 HALSIM_SimPeriodicCallback callback, void* param);
34
36 HALSIM_SimPeriodicCallback callback, void* param);
38
40
41} // extern "C"
int32_t(* HALSIM_SendConsoleLineHandler)(const char *line)
Definition: MockHooks.h:27
void HALSIM_StepTiming(uint64_t delta)
HAL_Bool HALSIM_IsTimingPaused(void)
void HALSIM_WaitForProgramStart(void)
int32_t HALSIM_RegisterSimPeriodicBeforeCallback(HALSIM_SimPeriodicCallback callback, void *param)
void HALSIM_SetSendConsoleLine(HALSIM_SendConsoleLineHandler handler)
void HALSIM_StepTimingAsync(uint64_t delta)
HAL_Bool HALSIM_GetProgramStarted(void)
void HALSIM_SetRuntimeType(HAL_RuntimeType type)
void HALSIM_CancelSimPeriodicBeforeCallback(int32_t uid)
void HALSIM_SetSendError(HALSIM_SendErrorHandler handler)
void HALSIM_RestartTiming(void)
void HALSIM_SetProgramStarted(void)
void HALSIM_ResumeTiming(void)
void(* HALSIM_SimPeriodicCallback)(void *param)
Definition: MockHooks.h:30
void HALSIM_CancelSimPeriodicAfterCallback(int32_t uid)
void HALSIM_CancelAllSimPeriodicCallbacks(void)
void HALSIM_PauseTiming(void)
int32_t HALSIM_RegisterSimPeriodicAfterCallback(HALSIM_SimPeriodicCallback callback, void *param)
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)
Definition: MockHooks.h:22
HAL_RuntimeType
Definition: HALBase.h:25
int32_t HAL_Bool
Definition: Types.h:73
type
Definition: core.h:556