Abstract board-specific PWM backend used for DRV8704 bridge inputs.
More...
#include <drv8704_pwm.h>
Abstract board-specific PWM backend used for DRV8704 bridge inputs.
◆ ~DRV8704PwmBackend()
| virtual DRV8704PwmBackend::~DRV8704PwmBackend |
( |
| ) |
|
|
inlinevirtual |
◆ begin()
Initialize hardware PWM resources for the provided input pins.
- Parameters
-
| pins | Driver pin bundle. |
| config | Requested PWM configuration. |
| capability | Resolved PWM capability report. |
- Returns
- True when the backend is available and initialized.
◆ configure()
Update the operating PWM frequency.
- Parameters
-
| pins | Driver pin bundle. |
| config | Requested PWM configuration. |
| capability | Updated PWM capability report. |
- Returns
- True when the backend accepted the requested frequency.
◆ end()
| virtual void DRV8704PwmBackend::end |
( |
const DRV8704Pins & |
pins | ) |
|
|
pure virtual |
Release hardware PWM resources and detach all PWM pins.
- Parameters
-
◆ releasePin()
| virtual void DRV8704PwmBackend::releasePin |
( |
int8_t |
pin | ) |
|
|
pure virtual |
Stop PWM on one pin and return it to GPIO control.
- Parameters
-
◆ writeDuty()
| virtual bool DRV8704PwmBackend::writeDuty |
( |
int8_t |
pin, |
|
|
uint32_t |
dutyCount, |
|
|
uint32_t |
maxDuty |
|
) |
| |
|
pure virtual |
Apply a PWM duty count to one bridge-input pin.
- Parameters
-
| pin | MCU pin number. |
| dutyCount | Duty count from 0 to max-duty. |
| maxDuty | Maximum duty count supported by the active resolution. |
- Returns
- True when the PWM output was applied.
The documentation for this class was generated from the following file: