Struct gpio_cdev::LineInfo[][src]

pub struct LineInfo { /* fields omitted */ }
Expand description

Information about a specific GPIO Line

Wraps kernel struct gpioline_info.

Implementations

Get a handle to the line that this info represents

Name assigned to this chip if assigned

The name of this GPIO line, such as the output pin of the line on the chip, a rail or a pin header name on a board, as specified by the gpio chip.

Get the direction of this GPIO if configured

Lines are considered to be inputs if not explicitly marked as outputs in the line info flags by the kernel.

True if the any flags for the device are set (input or output)

True if this line is being used by something else in the kernel

If another driver or subsystem in the kernel is using the line then it cannot be used via the cdev interface. See relevant kernel code.

True if this line is marked as active low in the kernel

True if this line is marked as open drain in the kernel

True if this line is marked as open source in the kernel

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.