Class implements the PWM generation in the FPGA.
Definition PWM.hpp:26
Common base class for all PWM Motor Controllers.
Definition PWMMotorController.hpp:35
std::unique_ptr< CallbackStore > RegisterPulseMicrosecondCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run when the PWM pulse microsecond value changes.
std::unique_ptr< CallbackStore > RegisterOutputPeriodCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run when the PWM period scale changes.
PWMSim(int channel)
Constructs from a PWM channel number.
void ResetData()
Reset all simulation data.
void SetInitialized(bool initialized)
Define whether the PWM has been initialized.
void SetPulseMicrosecond(int32_t microsecondPulseTime)
Set the PWM pulse microsecond value.
PWMSim(const PWM &pwm)
Constructs from a PWM object.
int32_t GetPulseMicrosecond() const
Get the PWM pulse microsecond value.
int GetOutputPeriod() const
Get the PWM period scale.
void SetOutputPeriod(int period)
Set the PWM period scale.
std::unique_ptr< CallbackStore > RegisterInitializedCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run when the PWM is initialized.
bool GetInitialized() const
Check whether the PWM has been initialized.
Definition CTREPCMSim.hpp:13
std::function< void(std::string_view, const HAL_Value *)> NotifyCallback
Definition CallbackStore.hpp:16
Definition CvSource.hpp:15