Abstract interface for a PWM driver.
More...
#include <PWM_updated.h>
Inherited by FaBoPWM_PCA9685_PWMChannel< EXTENDER >.
|
|
| PWM () |
| | Constructor.
|
| |
|
| ~PWM () |
| | Destructor.
|
| |
Abstract interface for a PWM driver.
Definition at line 42 of file PWM_updated.h.
◆ get_duty()
| virtual uint32_t PWM::get_duty |
( |
| ) |
|
|
pure virtual |
Gets the duty cycle.
- Returns
- counts duty cycle in counts
◆ get_duty_percent()
| uint8_t PWM::get_duty_percent |
( |
| ) |
|
|
inline |
Gets the duty cycle.
- Returns
- counts duty cycle in percent
Definition at line 71 of file PWM_updated.h.
◆ get_period()
| virtual uint32_t PWM::get_period |
( |
| ) |
|
|
pure virtual |
Get PWM period.
- Returns
- PWM period in counts
◆ get_period_max()
| virtual uint32_t PWM::get_period_max |
( |
| ) |
|
|
pure virtual |
Get max period supported
- Returns
- period in counts
◆ get_period_min()
| virtual uint32_t PWM::get_period_min |
( |
| ) |
|
|
pure virtual |
Get min period supported
- Returns
- period in counts
◆ set_duty()
| virtual void PWM::set_duty |
( |
uint32_t |
counts | ) |
|
|
pure virtual |
Sets the duty cycle.
- Parameters
-
| counts | duty cycle in counts |
◆ set_duty_percent()
| void PWM::set_duty_percent |
( |
uint8_t |
percent | ) |
|
|
inline |
Sets the duty cycle.
- Parameters
-
| counts | duty cycle in percent, range 0 to 100 |
Definition at line 63 of file PWM_updated.h.
◆ set_period()
| virtual void PWM::set_period |
( |
uint32_t |
counts | ) |
|
|
pure virtual |
Set PWM period.
- Parameters
-
The documentation for this class was generated from the following file: