virtual err_t _set_duty(uint16_t duty)=0
err_t set_duty(float duty_percentage)
Set the duty cycle on time in percentage.
err_t set_frequency(uint32_t frequency_hz)
Set frequency of PWM in hertz.
err_t _set(movement::axis_mask_t axisMask, int16_t speed) override
Implementation of axis movement, this function is called from set(...).
Link * driver
stores the driver.
uint16_t get_duty() const
Get the duty cycle on time (16bit)
uint32_t get_frequency() const
Get the frequency used in hertz.
virtual err_t _set_frequency(uint32_t frequency_hz)=0
float get_duty_per() const
Get the duty cycle on time in percentage.