pub struct Chip { /* private fields */ }
Expand description

A Linux chardev GPIO chip interface

It can be used to get information about the chip and lines and to request GPIO lines that can be used as inputs or outputs.

Implementations

Create a new GPIO chip interface using path

List all found chips

Request the info of a specific GPIO line.

Request the GPIO chip to configure the lines passed as argument as inputs or outputs

Calling this operation is a precondition to being able to set the state of the GPIO lines. All the lines passed in one request must share the configured options such as active state, edge detect, GPIO bias, output drive and consumer string.

Methods from Deref<Target = ChipInfo>

Get chip name

Get chip label

Get number of GPIO lines

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Formats the value using the given formatter. Read more

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.

Converts the given value to a String. Read more

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.