libgpiod
|
Contains a set of line config options used in line requests and reconfiguration. More...
#include <line-config.hpp>
Public Member Functions | |
line_config () | |
line_config (const line_config &other)=delete | |
line_config (line_config &&other) noexcept | |
Move constructor. More... | |
~line_config () | |
line_config & | operator= (line_config &&other) noexcept |
Move assignment operator. More... | |
line_config & | reset () noexcept |
Reset the line config object. More... | |
line_config & | add_line_settings (line::offset offset, const line_settings &settings) |
Add line settings for a single offset. More... | |
line_config & | add_line_settings (const line::offsets &offsets, const line_settings &settings) |
Add line settings for a set of offsets. More... | |
line_config & | set_output_values (const line::values &values) |
Set output values for a number of lines. More... | |
::std::map< line::offset, line_settings > | get_line_settings () const |
Get a mapping of offsets to line settings stored by this object. More... | |
Contains a set of line config options used in line requests and reconfiguration.
gpiod::line_config::line_config | ( | ) |
|
delete |
|
noexcept |
Move constructor.
other | Object to move. |
gpiod::line_config::~line_config | ( | ) |
line_config& gpiod::line_config::add_line_settings | ( | line::offset | offset, |
const line_settings & | settings | ||
) |
Add line settings for a single offset.
offset | Offset for which to add settings. |
settings | Line settings to add. |
line_config& gpiod::line_config::add_line_settings | ( | const line::offsets & | offsets, |
const line_settings & | settings | ||
) |
Add line settings for a set of offsets.
offsets | Offsets for which to add settings. |
settings | Line settings to add. |
::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.
|
noexcept |
Move assignment operator.
other | Object to move. |
|
noexcept |
Reset the line config object.
line_config& gpiod::line_config::set_output_values | ( | const line::values & | values | ) |
Set output values for a number of lines.
values | Buffer containing the output values. |