libgpiod  2.0.1
Public Member Functions
gpiod::request_config Class Referencefinal

Stores a set of options passed to the kernel when making a line request. More...

#include <request-config.hpp>

Public Member Functions

 request_config ()
 Constructor.
 
 request_config (const request_config &other)=delete
 
 request_config (request_config &&other) noexcept
 Move constructor. More...
 
request_configoperator= (request_config &&other) noexcept
 Move assignment operator. More...
 
request_configset_consumer (const ::std::string &consumer) noexcept
 Set the consumer name. More...
 
::std::string consumer () const noexcept
 Get the consumer name. More...
 
request_configset_event_buffer_size (::std::size_t event_buffer_size) noexcept
 Set the size of the kernel event buffer. More...
 
::std::size_t event_buffer_size () const noexcept
 Get the edge event buffer size from this request config. More...
 

Detailed Description

Stores a set of options passed to the kernel when making a line request.

Definition at line 35 of file request-config.hpp.

Constructor & Destructor Documentation

◆ request_config()

gpiod::request_config::request_config ( request_config &&  other)
noexcept

Move constructor.

Parameters
otherObject to move.

Member Function Documentation

◆ 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=()

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

Move assignment operator.

Parameters
otherObject to move.
Returns
Reference to self.

◆ set_consumer()

request_config& gpiod::request_config::set_consumer ( const ::std::string &  consumer)
noexcept

Set the consumer name.

Parameters
consumerNew 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_sizeNew 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: