![]() |
semf
|
Class for using a PWM as an output with permille value handling. More...
#include <pwmout.h>
Public Member Functions | |
virtual | ~PwmOut ()=default |
virtual void | enable (bool enable=true)=0 |
Enables / disable the PWM output. More... | |
virtual void | disable (bool disable=true)=0 |
Enables / disable the PWM output. More... | |
virtual bool | isEnabled () const =0 |
Current status of the PWM module. More... | |
virtual void | start ()=0 |
Enables the PWM. More... | |
virtual void | stop ()=0 |
Disable the PWM. More... | |
virtual void | setValue (uint32_t pwm)=0 |
Change the PWM value. More... | |
virtual uint32_t | value () const =0 |
Returns the current PWM value. More... | |
virtual void | setPermille (uint16_t pwm)=0 |
Set the PWM value in permille. The pwm value is calculated based on the set maximum value. More... | |
virtual uint16_t | permille () const =0 |
Returns the current PWM value in permille. The PWM value is calculated based on the set maximum value. More... | |
virtual void | setMaxValue (uint32_t pwm)=0 |
Set the maximum value for the PWM. More... | |
virtual uint32_t | maxValue () const =0 |
Returns the maximum possible PWM value. More... | |
virtual void | setInverted (bool inverted)=0 |
To configure whether the PWM should be inverted. This configuration does not become active until the methods setValue() , setEnabled(bool enable) or start() have been called. More... | |
Class for using a PWM as an output with permille value handling.
|
virtualdefault |
|
pure virtual |
Enables / disable the PWM output.
disable |
|
Implemented in semf::PwmOut.
|
pure virtual |
Enables / disable the PWM output.
enable |
|
Implemented in semf::PwmOut.
|
pure virtual |
Current status of the PWM module.
Implemented in semf::PwmOut.
|
pure virtual |
Returns the maximum possible PWM value.
Implemented in semf::PwmOut.
|
pure virtual |
Returns the current PWM value in permille. The PWM value is calculated based on the set maximum value.
Implemented in semf::PwmOut.
|
pure virtual |
To configure whether the PWM should be inverted. This configuration does not become active until the methods setValue()
, setEnabled(bool enable)
or start()
have been called.
inverted |
|
setValue()
, setEnabled()
and start()
. Implemented in semf::PwmOut.
|
pure virtual |
Set the maximum value for the PWM.
pwm | The maximum possible PWM value. The minimum value is 1. |
Implemented in semf::PwmOut.
|
pure virtual |
Set the PWM value in permille. The pwm value is calculated based on the set maximum value.
pwm | The PWM value in permille. Valid range is 0 - 1000. |
Implemented in semf::PwmOut.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |