libgpiod
|
Intermediate object storing the configuration for a line request. More...
#include <request-builder.hpp>
Public Member Functions | |
request_builder (const request_builder &other)=delete | |
request_builder (request_builder &&other) noexcept | |
Move constructor. | |
~request_builder () | |
request_builder & | operator= (const request_builder &other)=delete |
request_builder & | operator= (request_builder &&other) noexcept |
Move assignment operator. | |
request_builder & | set_request_config (request_config &req_cfg) |
Set the request config for the request. | |
const request_config & | get_request_config () const noexcept |
Get the current request config. | |
request_builder & | set_consumer (const ::std::string &consumer) noexcept |
Set consumer in the request config stored by this object. | |
request_builder & | set_event_buffer_size (::std::size_t event_buffer_size) noexcept |
Set the event buffer size in the request config stored by this object. | |
request_builder & | set_line_config (line_config &line_cfg) |
Set the line config for this request. | |
const line_config & | get_line_config () const noexcept |
Get the current line config. | |
request_builder & | add_line_settings (line::offset offset, const line_settings &settings) |
Add line settings to the line config stored by this object for a single offset. | |
request_builder & | add_line_settings (const line::offsets &offsets, const line_settings &settings) |
Add line settings to the line config stored by this object for a set of offsets. | |
request_builder & | set_output_values (const line::values &values) |
Set output values for a number of lines in the line config stored by this object. | |
line_request | do_request () |
Make the line request. | |
Intermediate object storing the configuration for a line request.
|
delete |
|
noexcept |
Move constructor.
other | Object to be moved. |
gpiod::request_builder::~request_builder | ( | ) |
request_builder & gpiod::request_builder::add_line_settings | ( | const line::offsets & | offsets, |
const line_settings & | settings | ||
) |
Add line settings to the line config stored by this object for a set of offsets.
offsets | Offsets for which to add settings. |
settings | Settings to add. |
request_builder & gpiod::request_builder::add_line_settings | ( | line::offset | offset, |
const line_settings & | settings | ||
) |
Add line settings to the line config stored by this object for a single offset.
offset | Offset for which to add settings. |
settings | Line settings to use. |
line_request gpiod::request_builder::do_request | ( | ) |
Make the line request.
|
noexcept |
Get the current line config.
|
noexcept |
Get the current request config.
|
delete |
|
noexcept |
Move assignment operator.
other | Object to be moved. |
|
noexcept |
Set consumer in the request config stored by this object.
consumer | New consumer string. |
|
noexcept |
Set the event buffer size in the request config stored by this object.
event_buffer_size | New event buffer size. |
request_builder & gpiod::request_builder::set_line_config | ( | line_config & | line_cfg | ) |
Set the line config for this request.
line_cfg | Line config to use. |
request_builder & gpiod::request_builder::set_output_values | ( | const line::values & | values | ) |
Set output values for a number of lines in the line config stored by this object.
values | Buffer containing the output values. |
request_builder & gpiod::request_builder::set_request_config | ( | request_config & | req_cfg | ) |
Set the request config for the request.
req_cfg | Request config to use. |