// 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 "wpi/hal/simulation/AnalogInData.h" #include "wpi/hal/simulation/SimDataValue.h" namespace wpi::hal { class AnalogInData { HAL_SIMDATAVALUE_DEFINE_NAME(Initialized) HAL_SIMDATAVALUE_DEFINE_NAME(AverageBits) HAL_SIMDATAVALUE_DEFINE_NAME(OversampleBits) HAL_SIMDATAVALUE_DEFINE_NAME(Voltage) public: SimDataValue initialized{ false}; std::atomic simDevice; SimDataValue averageBits{7}; SimDataValue oversampleBits{0}; SimDataValue voltage{0.0}; virtual void ResetData(); }; extern AnalogInData* SimAnalogInData; } // namespace wpi::hal