Expand description

Types and functions related to requesting lines.

The Builder creates the Request which can access and manipulate sets of lines and return edge events via the EdgeEventBuffer.

The line configuration is provided to the Builder using either direct mutators, such as as_input and with_edge_detection, or via a Config.

Examples

Request and read a basic input line:

use gpiocdev::request::Request;

let l3 = Request::builder()
    .on_chip("/dev/gpiochip0")
    .with_line(3)
    .request()?;
let value = l3.value(3)?;

Structs

A builder of line requests.
The configuration for a request for one or more lines.
A user space buffer for reading edge events in bulk from a Request.
An active request of a set of lines.