#include <PwmMock.hpp>
|
| PwmMock (const char *name) |
|
virtual | ~PwmMock ()=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.
|
|
◆ PwmMock()
zct::PwmMock::PwmMock |
( |
const char * |
name | ) |
|
◆ ~PwmMock()
virtual zct::PwmMock::~PwmMock |
( |
| ) |
|
|
virtualdefault |
◆ set()
void zct::PwmMock::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.
The documentation for this class was generated from the following files:
- /home/runner/work/ZephyrCppToolkit/ZephyrCppToolkit/include/ZephyrCppToolkit/Peripherals/PwmMock.hpp
- /home/runner/work/ZephyrCppToolkit/ZephyrCppToolkit/src/Peripherals/PwmMock.cpp