Skip to main content

GpioExt

Trait GpioExt 

Source
pub trait GpioExt {
    // Required method
    fn connect_to_gpio(
        &self,
        instance: &str,
    ) -> Result<Client<Gpio>, DriverError>;
}
Expand description

Extension trait for DriverContext to simplify connecting to GPIO resources.

Required Methods§

Source

fn connect_to_gpio(&self, instance: &str) -> Result<Client<Gpio>, DriverError>

Connects to a GPIO resource with the given instance name.

Implementations on Foreign Types§

Source§

impl GpioExt for DriverContext

Source§

fn connect_to_gpio(&self, instance: &str) -> Result<Client<Gpio>, DriverError>

Implementors§