libgpiod  2.0.1
Public Member Functions
gpiod::line_config Class Referencefinal

Contains a set of line config options used in line requests and reconfiguration. More...

#include <line-config.hpp>

Public Member Functions

 line_config (const line_config &other)=delete
 
 line_config (line_config &&other) noexcept
 Move constructor. More...
 
line_configoperator= (line_config &&other) noexcept
 Move assignment operator. More...
 
line_configreset () noexcept
 Reset the line config object. More...
 
line_configadd_line_settings (line::offset offset, const line_settings &settings)
 Add line settings for a single offset. More...
 
line_configadd_line_settings (const line::offsets &offsets, const line_settings &settings)
 Add line settings for a set of offsets. More...
 
line_configset_output_values (const line::values &values)
 Set output values for a number of lines. More...
 
::std::map< line::offset, line_settingsget_line_settings () const
 Get a mapping of offsets to line settings stored by this object. More...
 

Detailed Description

Contains a set of line config options used in line requests and reconfiguration.

Definition at line 33 of file line-config.hpp.

Constructor & Destructor Documentation

◆ line_config()

gpiod::line_config::line_config ( line_config &&  other)
noexcept

Move constructor.

Parameters
otherObject to move.

Member Function Documentation

◆ add_line_settings() [1/2]

line_config& gpiod::line_config::add_line_settings ( const line::offsets offsets,
const line_settings settings 
)

Add line settings for a set of offsets.

Parameters
offsetsOffsets for which to add settings.
settingsLine settings to add.
Returns
Reference to self.

◆ add_line_settings() [2/2]

line_config& gpiod::line_config::add_line_settings ( line::offset  offset,
const line_settings settings 
)

Add line settings for a single offset.

Parameters
offsetOffset for which to add settings.
settingsLine settings to add.
Returns
Reference to self.

◆ get_line_settings()

::std::map<line::offset, line_settings> gpiod::line_config::get_line_settings ( ) const

Get a mapping of offsets to line settings stored by this object.

Returns
Map in which keys represent line offsets and values are the settings corresponding with them.

◆ operator=()

line_config& gpiod::line_config::operator= ( line_config &&  other)
noexcept

Move assignment operator.

Parameters
otherObject to move.
Returns
Reference to self.

◆ reset()

line_config& gpiod::line_config::reset ( )
noexcept

Reset the line config object.

Returns
Reference to self.

◆ set_output_values()

line_config& gpiod::line_config::set_output_values ( const line::values values)

Set output values for a number of lines.

Parameters
valuesBuffer containing the output values.
Returns
Reference to self.

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