WPILibC++ 2023.4.3-108-ge5452e3
MockHooks.h File Reference
#include "hal/HALBase.h"
#include "hal/Types.h"

Go to the source code of this file.

Typedefs

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)
 
typedef int32_t(* HALSIM_SendConsoleLineHandler) (const char *line)
 
typedef void(* HALSIM_SimPeriodicCallback) (void *param)
 

Functions

void HALSIM_SetRuntimeType (HAL_RuntimeType type)
 
void HALSIM_WaitForProgramStart (void)
 
void HALSIM_SetProgramStarted (void)
 
HAL_Bool HALSIM_GetProgramStarted (void)
 
void HALSIM_RestartTiming (void)
 
void HALSIM_PauseTiming (void)
 
void HALSIM_ResumeTiming (void)
 
HAL_Bool HALSIM_IsTimingPaused (void)
 
void HALSIM_StepTiming (uint64_t delta)
 
void HALSIM_StepTimingAsync (uint64_t delta)
 
void HALSIM_SetSendError (HALSIM_SendErrorHandler handler)
 
void HALSIM_SetSendConsoleLine (HALSIM_SendConsoleLineHandler handler)
 
int32_t HALSIM_RegisterSimPeriodicBeforeCallback (HALSIM_SimPeriodicCallback callback, void *param)
 
void HALSIM_CancelSimPeriodicBeforeCallback (int32_t uid)
 
int32_t HALSIM_RegisterSimPeriodicAfterCallback (HALSIM_SimPeriodicCallback callback, void *param)
 
void HALSIM_CancelSimPeriodicAfterCallback (int32_t uid)
 
void HALSIM_CancelAllSimPeriodicCallbacks (void)
 

Typedef Documentation

◆ HALSIM_SendConsoleLineHandler

typedef int32_t(* HALSIM_SendConsoleLineHandler) (const char *line)

◆ HALSIM_SendErrorHandler

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)

◆ HALSIM_SimPeriodicCallback

typedef void(* HALSIM_SimPeriodicCallback) (void *param)

Function Documentation

◆ HALSIM_CancelAllSimPeriodicCallbacks()

void HALSIM_CancelAllSimPeriodicCallbacks ( void  )

◆ HALSIM_CancelSimPeriodicAfterCallback()

void HALSIM_CancelSimPeriodicAfterCallback ( int32_t  uid)

◆ HALSIM_CancelSimPeriodicBeforeCallback()

void HALSIM_CancelSimPeriodicBeforeCallback ( int32_t  uid)

◆ HALSIM_GetProgramStarted()

HAL_Bool HALSIM_GetProgramStarted ( void  )

◆ HALSIM_IsTimingPaused()

HAL_Bool HALSIM_IsTimingPaused ( void  )

◆ HALSIM_PauseTiming()

void HALSIM_PauseTiming ( void  )

◆ HALSIM_RegisterSimPeriodicAfterCallback()

int32_t HALSIM_RegisterSimPeriodicAfterCallback ( HALSIM_SimPeriodicCallback  callback,
void *  param 
)

◆ HALSIM_RegisterSimPeriodicBeforeCallback()

int32_t HALSIM_RegisterSimPeriodicBeforeCallback ( HALSIM_SimPeriodicCallback  callback,
void *  param 
)

◆ HALSIM_RestartTiming()

void HALSIM_RestartTiming ( void  )

◆ HALSIM_ResumeTiming()

void HALSIM_ResumeTiming ( void  )

◆ HALSIM_SetProgramStarted()

void HALSIM_SetProgramStarted ( void  )

◆ HALSIM_SetRuntimeType()

void HALSIM_SetRuntimeType ( HAL_RuntimeType  type)

◆ HALSIM_SetSendConsoleLine()

void HALSIM_SetSendConsoleLine ( HALSIM_SendConsoleLineHandler  handler)

◆ HALSIM_SetSendError()

void HALSIM_SetSendError ( HALSIM_SendErrorHandler  handler)

◆ HALSIM_StepTiming()

void HALSIM_StepTiming ( uint64_t  delta)

◆ HALSIM_StepTimingAsync()

void HALSIM_StepTimingAsync ( uint64_t  delta)

◆ HALSIM_WaitForProgramStart()

void HALSIM_WaitForProgramStart ( void  )