@ index
Definition base.h:690
Class to write to digital outputs.
Definition DigitalOutput.hpp:23
std::unique_ptr< CallbackStore > RegisterPinCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the pin changes.
std::unique_ptr< CallbackStore > RegisterDutyCycleCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the duty cycle value changes.
DigitalPWMSim(const DigitalOutput &digitalOutput)
Constructs from a DigitalOutput object.
std::unique_ptr< CallbackStore > RegisterInitializedCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run when this PWM output is initialized.
static DigitalPWMSim CreateForChannel(int channel)
Creates an DigitalPWMSim for a digital I/O channel.
void SetPin(int pin)
Change the pin number.
void SetDutyCycle(double dutyCycle)
Set the duty cycle value of this PWM output.
int GetPin() const
Check the pin number.
bool GetInitialized() const
Check whether this PWM output has been initialized.
void SetInitialized(bool initialized)
Define whether this PWM output has been initialized.
void ResetData()
Reset all simulation data.
static DigitalPWMSim CreateForIndex(int index)
Creates an DigitalPWMSim for a simulated index.
double GetDutyCycle() const
Read the duty cycle value.
Definition CTREPCMSim.hpp:13
std::function< void(std::string_view, const HAL_Value *)> NotifyCallback
Definition CallbackStore.hpp:16
Definition CvSource.hpp:15