Struct gpio_cdev::LineInfo [−][src]
pub struct LineInfo { /* fields omitted */ }
Expand description
Information about a specific GPIO Line
Wraps kernel struct gpioline_info
.
Implementations
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 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
Auto Trait Implementations
impl RefUnwindSafe for LineInfo
impl UnwindSafe for LineInfo
Blanket Implementations
Mutably borrows from an owned value. Read more