Struct gpiochip::GpioChip[][src]

pub struct GpioChip {
    pub name: String,
    pub label: String,
    pub lines: u32,
    // some fields omitted
}

Provide high-level access to Linux gpiochip Driver

Fields

name for the chip

label for the chip

amount of gpios provided by the chip

Methods

impl GpioChip
[src]

Open the gpiochip with the provided path

Typically, the path will be something like "/dev/gpiochip0".

Acquire information about a gpio

Request a GpioHandle for a single gpio

Request a GpioArrayHandle for multiple gpios, that should be get/set simultaneously

Request a GpioEventHandle for a single gpio

Trait Implementations

impl FromRawFd for GpioChip
[src]

Constructs a new instance of Self from the given raw file descriptor. Read more

impl IntoRawFd for GpioChip
[src]

Consumes this object, returning the raw underlying file descriptor. Read more

impl AsRawFd for GpioChip
[src]

Extracts the raw file descriptor. Read more

Auto Trait Implementations

impl Send for GpioChip

impl Sync for GpioChip