WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
MockHooks.hpp
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
9
10namespace wpi::hal::sim {
11inline void SetProgramState(const ControlWord& controlWord) {
12 HALSIM_SetProgramState(controlWord.GetValue());
13}
14
16 HAL_ControlWord word;
18 return ControlWord{word};
19}
20} // namespace wpi::hal::sim
void HALSIM_GetProgramState(HAL_ControlWord *controlWord)
void HALSIM_SetProgramState(HAL_ControlWord controlWord)
A wrapper around Driver Station control word.
Definition DriverStationTypes.hpp:29
HAL_ControlWord GetValue() const
Get the HAL raw value.
Definition DriverStationTypes.hpp:198
Definition MockHooks.hpp:10
void SetProgramState(const ControlWord &controlWord)
Definition MockHooks.hpp:11
ControlWord GetProgramState()
Definition MockHooks.hpp:15
Definition DriverStationTypes.h:26