[−][src]Struct gpio_cdev::LineInfo
Information about a specific GPIO Line
Wraps kernel struct gpioline_info.
Implementations
impl LineInfo[src]
pub fn line(&self) -> &Line[src]
Get a handle to the line that this info represents
pub fn name(&self) -> Option<&str>[src]
Name assigned to this chip if assigned
pub fn consumer(&self) -> Option<&str>[src]
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.
pub fn direction(&self) -> LineDirection[src]
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.
pub fn is_used(&self) -> bool[src]
True if the any flags for the device are set (input or output)
pub fn is_kernel(&self) -> bool[src]
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.
pub fn is_active_low(&self) -> bool[src]
True if this line is marked as active low in the kernel
pub fn is_open_drain(&self) -> bool[src]
True if this line is marked as open drain in the kernel
pub fn is_open_source(&self) -> bool[src]
True if this line is marked as open source in the kernel
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LineInfo
impl Send for LineInfo
impl Sync for LineInfo
impl Unpin for LineInfo
impl UnwindSafe for LineInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,