// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #pragma once #include #include #include "wpi/hal/simulation/DutyCycleData.h" #include "wpi/hal/simulation/SimDataValue.h" namespace wpi::hal { class DutyCycleData { HAL_SIMDATAVALUE_DEFINE_NAME(Initialized) HAL_SIMDATAVALUE_DEFINE_NAME(Output) HAL_SIMDATAVALUE_DEFINE_NAME(Frequency) public: SimDataValue initialized{ false}; std::atomic simDevice; SimDataValue frequency{0}; SimDataValue output{0}; virtual void ResetData(); }; extern DutyCycleData* SimDutyCycleData; } // namespace wpi::hal