Zephyr C++ Toolkit
Loading...
Searching...
No Matches
zct::PwmMock Class Reference

#include <PwmMock.hpp>

Inheritance diagram for zct::PwmMock:
Collaboration diagram for zct::PwmMock:

Public Member Functions

 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.
 
- Public Member Functions inherited from zct::IPwm
 IPwm (const char *name)
 
virtual ~IPwm ()=default
 Destroy the PWM.
 

Additional Inherited Members

- Protected Attributes inherited from zct::IPwm
const char * m_name
 

Constructor & Destructor Documentation

◆ PwmMock()

zct::PwmMock::PwmMock ( const char *  name)

◆ ~PwmMock()

virtual zct::PwmMock::~PwmMock ( )
virtualdefault

Destroy the PWM.

Member Function Documentation

◆ set()

void zct::PwmMock::set ( uint32_t  periodNs,
uint32_t  pulseWidthNs 
)
overridevirtual

Set the PWM period and pulse width.

Parameters
periodNsThe period of the PWM signal in nanoseconds.
pulseWidthNsThe pulse width of the PWM signal in nanoseconds.

Implements zct::IPwm.


The documentation for this class was generated from the following files: