Zephyr C++ Toolkit
Loading...
Searching...
No Matches
IPwm.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
5
namespace
zct
{
6
7
class
IPwm
{
8
public
:
9
IPwm
(
const
char
* name);
10
14
virtual
~IPwm
() =
default
;
15
22
virtual
void
set
(uint32_t periodNs, uint32_t pulseWidthNs) = 0;
23
protected
:
24
const
char
*
m_name
;
25
};
26
27
}
// namespace zct
zct::IPwm
Definition
IPwm.hpp:7
zct::IPwm::~IPwm
virtual ~IPwm()=default
Destroy the PWM.
zct::IPwm::set
virtual void set(uint32_t periodNs, uint32_t pulseWidthNs)=0
Set the PWM period and pulse width.
zct::IPwm::m_name
const char * m_name
Definition
IPwm.hpp:24
zct
Definition
Mutex.hpp:6
include
ZephyrCppToolkit
Peripherals
IPwm.hpp
Generated by
1.9.8