[sim] Move WPILib C++ sim implementations out of line (#2598)

This makes the sim classes consistent with the rest of the WPILibC classes.
This commit is contained in:
Peter Johnson
2020-07-15 23:48:09 -07:00
committed by GitHub
parent b9feb81226
commit c2cc90b27d
49 changed files with 3068 additions and 1621 deletions

View File

@@ -7,30 +7,30 @@
#pragma once
#include <hal/simulation/MockHooks.h>
#include <stdint.h>
#include <hal/HALBase.h>
namespace frc {
namespace sim {
inline void SetRuntimeType(HAL_RuntimeType type) {
HALSIM_SetRuntimeType(type);
}
void SetRuntimeType(HAL_RuntimeType type);
inline void WaitForProgramStart() { HALSIM_WaitForProgramStart(); }
void WaitForProgramStart();
inline void SetProgramStarted() { HALSIM_SetProgramStarted(); }
void SetProgramStarted();
inline bool GetProgramStarted() { return HALSIM_GetProgramStarted(); }
bool GetProgramStarted();
inline void RestartTiming() { HALSIM_RestartTiming(); }
void RestartTiming();
inline void PauseTiming() { HALSIM_PauseTiming(); }
void PauseTiming();
inline void ResumeTiming() { HALSIM_ResumeTiming(); }
void ResumeTiming();
inline bool IsTimingPaused() { return HALSIM_IsTimingPaused(); }
bool IsTimingPaused();
inline void StepTiming(uint64_t delta) { HALSIM_StepTiming(delta); }
void StepTiming(uint64_t delta);
} // namespace sim
} // namespace frc