10#include "wpi/units/frequency.hpp"
@ index
Definition base.h:690
Class to read a duty cycle PWM input.
Definition DutyCycle.hpp:23
void SetFrequency(wpi::units::hertz_t frequency)
Change the duty cycle frequency.
std::unique_ptr< CallbackStore > RegisterOutputCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the output changes.
std::unique_ptr< CallbackStore > RegisterInitializedCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run when this duty cycle input is initialized.
wpi::units::hertz_t GetFrequency() const
Measure the frequency.
std::unique_ptr< CallbackStore > RegisterFrequencyCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the frequency changes.
double GetOutput() const
Measure the output from this duty cycle port.
bool GetInitialized() const
Check whether this duty cycle input has been initialized.
static DutyCycleSim CreateForChannel(int channel)
Creates a DutyCycleSim for a SmartIO channel.
void SetOutput(double output)
Change the duty cycle output.
void ResetData()
Reset all simulation data for the duty cycle output.
void SetInitialized(bool initialized)
Define whether this duty cycle input has been initialized.
DutyCycleSim(const DutyCycle &dutyCycle)
Constructs from a DutyCycle object.
Definition CTREPCMSim.hpp:13
std::function< void(std::string_view, const HAL_Value *)> NotifyCallback
Definition CallbackStore.hpp:16
Definition CvSource.hpp:15