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

Detailed Description

The pwm_out_channel class.

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

#include <pwm_out_channel.h>

Public Member Functions

 pwm_out_channel (const pwm_out_descriptor &desc)
 The class constructor.
 pwm_out_channel (std::shared_ptr< digital_context_interface > instance, const pwm_out_descriptor &desc)
 The class constructor.
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 (const pwm_out_channel &other)=delete
 pwm_out_channel (pwm_out_channel &&other) noexcept
pwm_out_channel & operator= (const pwm_out_channel &other)=delete
pwm_out_channel & operator= (pwm_out_channel &&other) noexcept

Detailed Description

The pwm_out_channel class.

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

Constructor & Destructor Documentation

◆ pwm_out_channel() [1/4]

vsdk::io::pwm_out_channel::pwm_out_channel ( const pwm_out_descriptor & desc)
explicit

The class constructor.

Parameters
descThe channel configuration.

◆ pwm_out_channel() [2/4]

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

The class constructor.

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

◆ pwm_out_channel() [3/4]

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

Standard constructors

◆ pwm_out_channel() [4/4]

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

Standard constructors

Member Function Documentation

◆ descriptor()

pwm_out_descriptor vsdk::io::pwm_out_channel::descriptor ( ) const

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

Returns
A pwm_out_descriptor object.

◆ operator=() [1/2]

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

Standard assignment operators

◆ operator=() [2/2]

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

Standard assignment operators


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