#include <IPwm.hpp>
|
| IPwm (const char *name) |
|
virtual | ~IPwm ()=default |
| Destroy the PWM.
|
|
virtual void | set (uint32_t periodNs, uint32_t pulseWidthNs)=0 |
| Set the PWM period and pulse width.
|
|
◆ IPwm()
zct::IPwm::IPwm |
( |
const char * |
name | ) |
|
◆ ~IPwm()
virtual zct::IPwm::~IPwm |
( |
| ) |
|
|
virtualdefault |
◆ set()
virtual void zct::IPwm::set |
( |
uint32_t |
periodNs, |
|
|
uint32_t |
pulseWidthNs |
|
) |
| |
|
pure virtual |
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. |
Implemented in zct::PwmMock, and zct::PwmReal.
◆ m_name
const char* zct::IPwm::m_name |
|
protected |
The documentation for this class was generated from the following files:
- /home/runner/work/ZephyrCppToolkit/ZephyrCppToolkit/include/ZephyrCppToolkit/Peripherals/IPwm.hpp
- /home/runner/work/ZephyrCppToolkit/ZephyrCppToolkit/src/Peripherals/IPwm.cpp