Veethree D7 SDK
Loading...
Searching...
No Matches
src
libio
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
12
namespace
vsdk::io
{
13
14
class
digital_context
;
15
23
class
pwm_out_channel
{
24
public
:
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;
44
pwm_out_channel
(
pwm_out_channel
&& other) noexcept;
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
69
pwm_out_descriptor
descriptor
() const;
70
71
private:
72
struct impl;
73
std::unique_ptr<impl> _impl;
74
};
75
76
}
// namespace vsdk::io
77
78
#endif
// PWM_OUT_CHANNEL_H
vsdk::io::digital_context
The digital class.
Definition
digital_context.h:27
vsdk::io::pwm_out_channel::set_on
void set_on()
Set channel output to ON.
vsdk::io::pwm_out_channel::set_off
void set_off()
Set channel output to OFF.
vsdk::io::pwm_out_channel::descriptor
pwm_out_descriptor descriptor() const
Return a descriptor with the channel configuration used when the class was instantiated.
vsdk::io::pwm_out_channel::pwm_out_channel
pwm_out_channel(std::shared_ptr< digital_context_interface > instance, const pwm_out_descriptor &desc)
The class constructor.
vsdk::io::pwm_out_channel::pwm_out_channel
pwm_out_channel(const pwm_out_descriptor &desc)
The class constructor.
digital_common.h
Digital IO common types.
vsdk::io
Any entities that belong to the IO library.
vsdk::io::pwm_out_descriptor
The pwm_out_descriptor classHolds the configuration for a pwm_out_channel.
Definition
digital_common.h:204
Generated by
1.14.0