#include <PwmReal.hpp>
|
| PwmReal (const char *name, const struct pwm_dt_spec &pwmDtSpec) |
|
virtual | ~PwmReal ()=default |
| Destroy the PWM.
|
|
virtual void | set (uint32_t periodNs, uint32_t pulseWidthNs) override |
| Set the PWM period and pulse width.
|
|
| IPwm (const char *name) |
|
virtual | ~IPwm ()=default |
| Destroy the PWM.
|
|
◆ PwmReal()
zct::PwmReal::PwmReal |
( |
const char * |
name, |
|
|
const struct pwm_dt_spec & |
pwmDtSpec |
|
) |
| |
◆ ~PwmReal()
virtual zct::PwmReal::~PwmReal |
( |
| ) |
|
|
virtualdefault |
◆ set()
void zct::PwmReal::set |
( |
uint32_t |
periodNs, |
|
|
uint32_t |
pulseWidthNs |
|
) |
| |
|
overridevirtual |
Set the PWM period and pulse width.
- Parameters
-
periodNs | The period of the PWM signal in nanoseconds. |
pulseWidthNs | The pulse width of the PWM signal in nanoseconds. |
Implements zct::IPwm.
◆ m_pwmDtSpec
const struct pwm_dt_spec& zct::PwmReal::m_pwmDtSpec |
|
protected |
The documentation for this class was generated from the following files:
- /home/runner/work/ZephyrCppToolkit/ZephyrCppToolkit/include/ZephyrCppToolkit/Peripherals/PwmReal.hpp
- /home/runner/work/ZephyrCppToolkit/ZephyrCppToolkit/src/Peripherals/PwmReal.cpp