Veethree D7 SDK
Loading...
Searching...
No Matches
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
12namespace vsdk::io {
13
14class digital_context;
15
24public:
35 explicit digital_out_channel(std::shared_ptr<digital_context_interface> instance,
36 const digital_out_descriptor& desc);
37 ~digital_out_channel() noexcept;
38
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
75
76private:
77 struct impl;
78 std::unique_ptr<impl> _impl;
79};
80
81} // namespace vsdk::io
82
83#endif // DIGITAL_OUT_CHANNEL_H
The digital class.
Definition digital_context.h:27
void set_off()
Set channel output to OFF.
digital_out_descriptor descriptor() const
Return a descriptor with the channel configuration used when the class was instantiated.
digital_out_channel(std::shared_ptr< digital_context_interface > instance, const digital_out_descriptor &desc)
The class constructor.
digital_out_channel(const digital_out_descriptor &desc)
The class constructor.
void set_on()
Set channel output to ON.
void set_value(bool value)
Set channel output to boolean value passed.
Digital IO common types.
Any entities that belong to the IO library.
The digital_out_descriptor class.
Definition digital_common.h:183