Veethree D7 SDK
Loading...
Searching...
No Matches
src
libio
digital_out_channel.h
Go to the documentation of this file.
1
5
#ifndef DIGITAL_OUT_CHANNEL_H
6
#define DIGITAL_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
digital_out_channel
{
24
public
:
29
explicit
digital_out_channel
(
const
digital_out_descriptor
& desc);
35
explicit
digital_out_channel
(std::shared_ptr<digital_context_interface> instance,
36
const
digital_out_descriptor
& desc);
37
~digital_out_channel
() noexcept;
38
43
digital_out_channel
(const
digital_out_channel
& other) = delete;
44
digital_out_channel
(
digital_out_channel
&& other) noexcept;
46
51
digital_out_channel
& operator=(const
digital_out_channel
& other) = delete;
52
digital_out_channel
& operator=(
digital_out_channel
&& other) noexcept;
54
58
void
set_on
();
62
void
set_off
();
67
void
set_value
(
bool
value);
68
74
digital_out_descriptor
descriptor
() const;
75
76
private:
77
struct impl;
78
std::unique_ptr<impl> _impl;
79
};
80
81
}
// namespace vsdk::io
82
83
#endif
// DIGITAL_OUT_CHANNEL_H
vsdk::io::digital_context
The digital class.
Definition
digital_context.h:27
vsdk::io::digital_out_channel::set_off
void set_off()
Set channel output to OFF.
vsdk::io::digital_out_channel::descriptor
digital_out_descriptor descriptor() const
Return a descriptor with the channel configuration used when the class was instantiated.
vsdk::io::digital_out_channel::digital_out_channel
digital_out_channel(std::shared_ptr< digital_context_interface > instance, const digital_out_descriptor &desc)
The class constructor.
vsdk::io::digital_out_channel::digital_out_channel
digital_out_channel(const digital_out_descriptor &desc)
The class constructor.
vsdk::io::digital_out_channel::set_on
void set_on()
Set channel output to ON.
vsdk::io::digital_out_channel::set_value
void set_value(bool value)
Set channel output to boolean value passed.
digital_common.h
Digital IO common types.
vsdk::io
Any entities that belong to the IO library.
vsdk::io::digital_out_descriptor
The digital_out_descriptor class.
Definition
digital_common.h:183
Generated by
1.14.0