Veethree D7 SDK
Loading...
Searching...
No Matches
vsdk::io::digital_out_channel Class Reference

Detailed Description

The digital_out_channel class.

This class holds the configuration for a particular digital output channel. It is also responsible for enabling/disabling the channel.

#include <digital_out_channel.h>

Public Member Functions

 digital_out_channel (const digital_out_descriptor &desc)
 The class constructor.
 digital_out_channel (std::shared_ptr< digital_context_interface > instance, const digital_out_descriptor &desc)
 The class constructor.
void set_on ()
 Set channel output to ON.
void set_off ()
 Set channel output to OFF.
void set_value (bool value)
 Set channel output to boolean value passed.
digital_out_descriptor descriptor () const
 Return a descriptor with the channel configuration used when the class was instantiated.
 digital_out_channel (const digital_out_channel &other)=delete
 digital_out_channel (digital_out_channel &&other) noexcept
digital_out_channel & operator= (const digital_out_channel &other)=delete
digital_out_channel & operator= (digital_out_channel &&other) noexcept

Detailed Description

The digital_out_channel class.

This class holds the configuration for a particular digital output channel. It is also responsible for enabling/disabling the channel.

Constructor & Destructor Documentation

◆ digital_out_channel() [1/4]

vsdk::io::digital_out_channel::digital_out_channel ( const digital_out_descriptor & desc)
explicit

The class constructor.

Parameters
descThe channel configuration.

◆ digital_out_channel() [2/4]

vsdk::io::digital_out_channel::digital_out_channel ( std::shared_ptr< digital_context_interface > instance,
const digital_out_descriptor & desc )
explicit

The class constructor.

Parameters
instanceA class instance that conforms to digital_context_interface.
descThe channel configuration.

◆ digital_out_channel() [3/4]

vsdk::io::digital_out_channel::digital_out_channel ( const digital_out_channel & other)
delete

Standard constructors

◆ digital_out_channel() [4/4]

vsdk::io::digital_out_channel::digital_out_channel ( digital_out_channel && other)
noexcept

Standard constructors

Member Function Documentation

◆ descriptor()

digital_out_descriptor vsdk::io::digital_out_channel::descriptor ( ) const

Return a descriptor with the channel configuration used when the class was instantiated.

Returns
A digital_out_descriptor object.

◆ operator=() [1/2]

digital_out_channel & vsdk::io::digital_out_channel::operator= ( const digital_out_channel & other)
delete

Standard assignment operators

◆ operator=() [2/2]

digital_out_channel & vsdk::io::digital_out_channel::operator= ( digital_out_channel && other)
noexcept

Standard assignment operators

◆ set_value()

void vsdk::io::digital_out_channel::set_value ( bool value)

Set channel output to boolean value passed.

Parameters
valueThe digital pin value to be set

The documentation for this class was generated from the following file: