10#ifndef SEMF_OUTPUT_PWMOUT_H_
11#define SEMF_OUTPUT_PWMOUT_H_
37 void start()
override;
39 void setValue(uint32_t pwm)
override;
40 uint32_t
value()
const override;
51 bool m_inverted =
false;
Class to interface pwm's hardware module of the microcontroller.
Class for using a PWM as an output with permille value handling.
void enable(bool enable=true) override
Enables / disable the PWM output.
bool isEnabled() const override
Current status of the PWM module.
uint32_t value() const override
Returns the current PWM value.
void stop() override
Disable the PWM.
uint16_t permille() const override
Returns the current PWM value in permille. The PWM value is calculated based on the set maximum value...
void disable(bool disable=true) override
Enables / disable the PWM output.
void start() override
Enables the PWM.
void setPermille(uint16_t pwm) override
Set the PWM value in permille. The pwm value is calculated based on the set maximum value.
PwmOut(const PwmOut &other)=delete
void setMaxValue(uint32_t pwm) override
Set the maximum value for the PWM.
PwmOut(Pwm &pwm)
Constructor.
uint32_t maxValue() const override
Returns the maximum possible PWM value.
void setInverted(bool inverted) override
To configure whether the PWM should be inverted. This configuration does not become active until the ...
void setValue(uint32_t pwm) override
Change the PWM value.
Class for using a PWM as an output with permille value handling.
virtual ~PwmOut()=default