14class PWMMotorController;
Class implements the PWM generation in the FPGA.
Definition PWM.h:26
Class to control a simulated PWM output.
Definition PWMSim.h:21
PWMSim(const PWM &pwm)
Constructs from a PWM object.
void SetInitialized(bool initialized)
Define whether the PWM has been initialized.
bool GetInitialized() const
Check whether the PWM has been initialized.
int GetOutputPeriod() const
Get the PWM period scale.
void SetOutputPeriod(int period)
Set the PWM period scale.
void ResetData()
Reset all simulation data.
std::unique_ptr< CallbackStore > RegisterPulseMicrosecondCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run when the PWM pulse microsecond value changes.
PWMSim(int channel)
Constructs from a PWM channel number.
std::unique_ptr< CallbackStore > RegisterInitializedCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run when the PWM is initialized.
std::unique_ptr< CallbackStore > RegisterOutputPeriodCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run when the PWM period scale changes.
void SetPulseMicrosecond(int32_t microsecondPulseTime)
Set the PWM pulse microsecond value.
int32_t GetPulseMicrosecond() const
Get the PWM pulse microsecond value.
std::function< void(std::string_view, const HAL_Value *)> NotifyCallback
Definition CallbackStore.h:14
Definition SystemServer.h:9