|
|
constexpr | PWM ()=default |
| | Constructor.
|
| |
| | ~PWM ()=default |
| | Destructor.
|
| |
Definition at line 213 of file Esp32Ledc.hxx.
◆ Channel()
| openmrn_arduino::Esp32Ledc::Channel::Channel |
( |
Esp32Ledc * |
parent, |
|
|
ledc_channel_t |
channel, |
|
|
uint8_t |
pin |
|
) |
| |
|
inline |
◆ get_duty()
| uint32_t openmrn_arduino::Esp32Ledc::Channel::get_duty |
( |
| ) |
|
|
inlineoverridevirtual |
Gets the duty cycle.
- Returns
- counts duty cycle in counts
Implements PWM.
Definition at line 237 of file Esp32Ledc.hxx.
◆ get_period()
| uint32_t openmrn_arduino::Esp32Ledc::Channel::get_period |
( |
| ) |
|
|
inlineoverridevirtual |
◆ get_period_max()
| uint32_t openmrn_arduino::Esp32Ledc::Channel::get_period_max |
( |
| ) |
|
|
inlineoverridevirtual |
Get max period supported.
- Returns
- period in counts
Implements PWM.
Definition at line 242 of file Esp32Ledc.hxx.
◆ get_period_min()
| uint32_t openmrn_arduino::Esp32Ledc::Channel::get_period_min |
( |
| ) |
|
|
inlineoverridevirtual |
Get min period supported.
- Returns
- period in counts
Implements PWM.
Definition at line 247 of file Esp32Ledc.hxx.
◆ set_duty()
| void openmrn_arduino::Esp32Ledc::Channel::set_duty |
( |
uint32_t |
counts | ) |
|
|
inlineoverridevirtual |
Sets the duty cycle.
- Parameters
-
| counts | duty cycle in counts |
Implements PWM.
Definition at line 232 of file Esp32Ledc.hxx.
◆ set_period()
| void openmrn_arduino::Esp32Ledc::Channel::set_period |
( |
uint32_t |
counts | ) |
|
|
inlineoverridevirtual |
◆ channel_
| ledc_channel_t openmrn_arduino::Esp32Ledc::Channel::channel_ |
|
private |
◆ parent_
| Esp32Ledc* openmrn_arduino::Esp32Ledc::Channel::parent_ |
|
private |
The documentation for this class was generated from the following file: