Zephyr C++ Toolkit
Loading...
Searching...
No Matches
zct::IPwm Class Referenceabstract

#include <IPwm.hpp>

Inheritance diagram for zct::IPwm:

Public Member Functions

 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.
 

Protected Attributes

const char * m_name
 

Constructor & Destructor Documentation

◆ IPwm()

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

◆ ~IPwm()

virtual zct::IPwm::~IPwm ( )
virtualdefault

Destroy the PWM.

Member Function Documentation

◆ set()

virtual void zct::IPwm::set ( uint32_t  periodNs,
uint32_t  pulseWidthNs 
)
pure virtual

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.

Implemented in zct::PwmMock, and zct::PwmReal.

Member Data Documentation

◆ m_name

const char* zct::IPwm::m_name
protected

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