// 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 "hal/simulation/DIOData.h" #include "hal/simulation/SimDataValue.h" namespace hal { class DIOData { HAL_SIMDATAVALUE_DEFINE_NAME(Initialized) HAL_SIMDATAVALUE_DEFINE_NAME(Value) HAL_SIMDATAVALUE_DEFINE_NAME(PulseLength) HAL_SIMDATAVALUE_DEFINE_NAME(IsInput) HAL_SIMDATAVALUE_DEFINE_NAME(FilterIndex) public: SimDataValue initialized{ false}; std::atomic simDevice; SimDataValue value{true}; SimDataValue pulseLength{0.0}; SimDataValue isInput{true}; SimDataValue filterIndex{-1}; virtual void ResetData(); }; extern DIOData* SimDIOData; } // namespace hal