![]() |
Speeduino
|
#include <PwmOutputChannel.h>
Public Member Functions | |
| PwmOutputChannel ()=default | |
| Default construction - not usable yet. | |
| PwmOutputChannel (uint8_t pinNum, uint16_t fullDuty) | |
| Construct a new Pwm Output Channel object. | |
| void | setTargetDuty (uint8_t duty) noexcept |
| Set the target PWM duty. | |
| bool | isNoDuty (void) const |
| bool | isPartialDuty (void) const |
| bool | isFullDuty (void) const |
Public Attributes | |
| uint16_t | maxDuty = 0 |
| Maximum duty based on motor frequency. | |
| uint16_t | targetDuty = 0 |
| Requested duty cycle (0-100% or 0-255) | |
| trackedOutputPinAdapter_t< TPin > | pin |
| The pin. | |
|
default |
Default construction - not usable yet.
|
inline |
Construct a new Pwm Output Channel object.
| pinNum | The pin controlling the PWM motor |
| fullDuty | The frequency in Hz at 100% duty |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
Set the target PWM duty.
| duty | Target duty in %*2. I.e. 0 to 200 |
| uint16_t PwmOutputChannel< TPin >::maxDuty = 0 |
Maximum duty based on motor frequency.
| trackedOutputPinAdapter_t<TPin> PwmOutputChannel< TPin >::pin |
The pin.
| uint16_t PwmOutputChannel< TPin >::targetDuty = 0 |
Requested duty cycle (0-100% or 0-255)