|
| | TivaPWM (unsigned timer_base, unsigned timer, unsigned period, unsigned duty) |
| |
| void | set_period (uint32_t counts) override |
| | Set PWM period.
|
| |
| virtual uint32_t | get_period () override |
| | Get PWM period.
|
| |
| void | set_duty (uint32_t counts) override |
| | Sets the duty cycle.
|
| |
| virtual uint32_t | get_duty () override |
| | Gets the duty cycle.
|
| |
| virtual uint32_t | get_period_max () override |
| | Get max period supported.
|
| |
| virtual uint32_t | get_period_min () override |
| | Get min period supported.
|
| |
| void | set_duty_percent (uint8_t percent) |
| | Sets the duty cycle.
|
| |
| uint8_t | get_duty_percent () |
| | Gets the duty cycle.
|
| |
|
|
constexpr | PWM ()=default |
| | Constructor.
|
| |
| | ~PWM ()=default |
| | Destructor.
|
| |
Definition at line 43 of file TivaPWM.hxx.
◆ TivaPWM()
| TivaPWM::TivaPWM |
( |
unsigned |
timer_base, |
|
|
unsigned |
timer, |
|
|
unsigned |
period, |
|
|
unsigned |
duty |
|
) |
| |
|
inline |
◆ get_duty()
| virtual uint32_t TivaPWM::get_duty |
( |
| ) |
|
|
inlineoverridevirtual |
Gets the duty cycle.
- Returns
- counts duty cycle in counts
Implements PWM.
Definition at line 62 of file TivaPWM.hxx.
◆ get_period()
| virtual uint32_t TivaPWM::get_period |
( |
| ) |
|
|
inlineoverridevirtual |
◆ get_period_max()
| virtual uint32_t TivaPWM::get_period_max |
( |
| ) |
|
|
inlineoverridevirtual |
Get max period supported.
- Returns
- period in counts
Implements PWM.
Definition at line 65 of file TivaPWM.hxx.
◆ get_period_min()
| virtual uint32_t TivaPWM::get_period_min |
( |
| ) |
|
|
inlineoverridevirtual |
Get min period supported.
- Returns
- period in counts
Implements PWM.
Definition at line 69 of file TivaPWM.hxx.
◆ set_duty()
| void TivaPWM::set_duty |
( |
uint32_t |
counts | ) |
|
|
inlineoverridevirtual |
Sets the duty cycle.
- Parameters
-
| counts | duty cycle in counts |
Implements PWM.
Definition at line 59 of file TivaPWM.hxx.
◆ set_period()
| void TivaPWM::set_period |
( |
uint32_t |
counts | ) |
|
|
inlineoverridevirtual |
◆ base_
◆ timer_
The documentation for this class was generated from the following file: