Stores a set of options passed to the kernel when making a line request.
More...
#include <request-config.hpp>
Stores a set of options passed to the kernel when making a line request.
Definition at line 35 of file request-config.hpp.
◆ request_config()
Move constructor.
- Parameters
-
◆ consumer()
::std::string gpiod::request_config::consumer |
( |
| ) |
const |
|
noexcept |
Get the consumer name.
- Returns
- Currently configured consumer name. May be an empty string.
◆ event_buffer_size()
::std::size_t gpiod::request_config::event_buffer_size |
( |
| ) |
const |
|
noexcept |
Get the edge event buffer size from this request config.
- Returns
- Current edge event buffer size setting.
◆ operator=()
Move assignment operator.
- Parameters
-
- Returns
- Reference to self.
◆ set_consumer()
request_config& gpiod::request_config::set_consumer |
( |
const ::std::string & |
consumer | ) |
|
|
noexcept |
Set the consumer name.
- Parameters
-
consumer | New consumer name. |
- Returns
- Reference to self.
◆ set_event_buffer_size()
request_config& gpiod::request_config::set_event_buffer_size |
( |
::std::size_t |
event_buffer_size | ) |
|
|
noexcept |
Set the size of the kernel event buffer.
- Parameters
-
event_buffer_size | New event buffer size. |
- Returns
- Reference to self.
- Note
- The kernel may adjust the value if it's too high. If set to 0, the default value will be used.
The documentation for this class was generated from the following file: