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