pub struct Lines<Direction> { /* private fields */ }
Expand description

The interface for getting the values of GPIO lines configured for input

Use Chip::request_lines with Options::input or Options::output to configure specific GPIO lines for input or output.

Implementations

Get the value of GPIO lines

The values can only be read if the lines have previously been requested as inputs or outputs using the Chip::request_lines method with Options::input or with Options::output.

Read GPIO events synchronously

The values can only be read if the lines have previously been requested as inputs using the Chip::request_lines method with Options::input.

Set the value of GPIO lines

The value can only be set if the lines have previously been requested as outputs using the Chip::request_lines with Options::output.

Methods from Deref<Target = ValuesInfo>

Get associated chip name

Get consumer string

Get offsets of requested lines

Get offset to bit position mapping

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.