2018-05-11 12:38:23 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2020-06-20 23:47:55 -07:00
|
|
|
/* Copyright (c) 2018-2020 FIRST. All Rights Reserved. */
|
2018-05-11 12:38:23 -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
|
|
|
|
|
|
2020-06-27 22:11:24 -07:00
|
|
|
#include <hal/simulation/MockHooks.h>
|
2018-05-11 12:38:23 -07:00
|
|
|
|
|
|
|
|
namespace frc {
|
|
|
|
|
namespace sim {
|
2018-08-16 01:17:59 -04:00
|
|
|
|
2020-07-04 10:10:43 -07:00
|
|
|
inline void SetRuntimeType(HAL_RuntimeType type) {
|
|
|
|
|
HALSIM_SetRuntimeType(type);
|
|
|
|
|
}
|
2020-06-26 20:46:13 -07:00
|
|
|
|
2020-07-04 10:10:43 -07:00
|
|
|
inline void WaitForProgramStart() { HALSIM_WaitForProgramStart(); }
|
2018-08-16 01:17:59 -04:00
|
|
|
|
2020-07-04 10:10:43 -07:00
|
|
|
inline void SetProgramStarted() { HALSIM_SetProgramStarted(); }
|
2018-08-16 01:17:59 -04:00
|
|
|
|
2020-07-04 10:10:43 -07:00
|
|
|
inline bool GetProgramStarted() { return HALSIM_GetProgramStarted(); }
|
2018-08-16 01:17:59 -04:00
|
|
|
|
2020-07-04 10:10:43 -07:00
|
|
|
inline void RestartTiming() { HALSIM_RestartTiming(); }
|
2018-08-16 01:17:59 -04:00
|
|
|
|
2020-07-04 10:10:43 -07:00
|
|
|
inline void PauseTiming() { HALSIM_PauseTiming(); }
|
2020-06-20 23:47:55 -07:00
|
|
|
|
2020-07-04 10:10:43 -07:00
|
|
|
inline void ResumeTiming() { HALSIM_ResumeTiming(); }
|
2020-06-20 23:47:55 -07:00
|
|
|
|
2020-07-04 10:10:43 -07:00
|
|
|
inline bool IsTimingPaused() { return HALSIM_IsTimingPaused(); }
|
2020-06-20 23:47:55 -07:00
|
|
|
|
2020-07-04 10:10:43 -07:00
|
|
|
inline void StepTiming(uint64_t delta) { HALSIM_StepTiming(delta); }
|
2020-06-20 23:47:55 -07:00
|
|
|
|
2018-05-11 12:38:23 -07:00
|
|
|
} // namespace sim
|
|
|
|
|
} // namespace frc
|