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