Veethree D7 SDK
Loading...
Searching...
No Matches
pwm_out_channel.h
Go to the documentation of this file.
1
5#ifndef PWM_OUT_CHANNEL_H
6#define PWM_OUT_CHANNEL_H
7
8#include "digital_common.h"
9
10#include <memory>
11
12namespace vsdk::io {
13
14class digital_context;
15
24public:
29 explicit pwm_out_channel(const pwm_out_descriptor& desc);
35 explicit pwm_out_channel(std::shared_ptr<digital_context_interface> instance,
36 const pwm_out_descriptor& desc);
37 ~pwm_out_channel() noexcept;
38
43 pwm_out_channel(const pwm_out_channel& other) = delete;
46
51 pwm_out_channel& operator=(const pwm_out_channel& other) = delete;
52 pwm_out_channel& operator=(pwm_out_channel&& other) noexcept;
54
58 void set_on();
62 void set_off();
63
70
71private:
72 struct impl;
73 std::unique_ptr<impl> _impl;
74};
75
76} // namespace vsdk::io
77
78#endif // PWM_OUT_CHANNEL_H
The digital class.
Definition digital_context.h:27
void set_on()
Set channel output to ON.
void set_off()
Set channel output to OFF.
pwm_out_descriptor descriptor() const
Return a descriptor with the channel configuration used when the class was instantiated.
pwm_out_channel(std::shared_ptr< digital_context_interface > instance, const pwm_out_descriptor &desc)
The class constructor.
pwm_out_channel(const pwm_out_descriptor &desc)
The class constructor.
Digital IO common types.
Any entities that belong to the IO library.
The pwm_out_descriptor classHolds the configuration for a pwm_out_channel.
Definition digital_common.h:204