GPIO request configuration
-
class request_config
Stores a set of options passed to the kernel when making a line request.
Public Functions
-
request_config()
Constructor.
-
request_config(request_config &&other) noexcept
Move constructor.
- Parameters:
other – Object to move.
-
request_config &operator=(request_config &&other) noexcept
Move assignment operator.
- Parameters:
other – Object to move.
- Returns:
Reference to self.
-
request_config &set_consumer(const ::std::string &consumer) noexcept
Set the consumer name.
- Parameters:
consumer – New consumer name.
- Returns:
Reference to self.
-
::std::string consumer() const noexcept
Get the consumer name.
- Returns:
Currently configured consumer name. May be an empty string.
-
request_config &set_event_buffer_size(::std::size_t event_buffer_size) noexcept
Set the size of the kernel event buffer.
Note
The kernel may adjust the value if it’s too high. If set to 0, the default value will be used.
- Parameters:
event_buffer_size – New event buffer size.
- Returns:
Reference to self.
-
::std::size_t event_buffer_size() const noexcept
Get the edge event buffer size from this request config.
- Returns:
Current edge event buffer size setting.
-
request_config()