libyggdrasil
v1.0.0
|
Timer channel implementation for Asgard. More...
#include <timer.hpp>
Public Member Functions | |
ALWAYS_INLINE bool | startPwm () const noexcept |
Start PWM generation for the channel. More... | |
ALWAYS_INLINE bool | stopPwm () const noexcept |
Stop PWM generation for the channel. More... | |
ALWAYS_INLINE bool | setPolarityHigh (bool highActive=true) const noexcept |
Start set pwm polarity. More... | |
ALWAYS_INLINE bool | setDutyCycle (float dutyCycle) const noexcept |
Set the duty cycle as a float value. More... | |
Timer channel implementation for Asgard.
|
inlinenoexcept |
Set the duty cycle as a float value.
dutyCycle | Duty cycle in % [0 100] |
|
inlinenoexcept |
Start set pwm polarity.
highActive | Set channel to high active when true |
|
inlinenoexcept |
Start PWM generation for the channel.
|
inlinenoexcept |
Stop PWM generation for the channel.