pub trait GpioExt {
    // Required methods
    fn set_alt_mode(&self, pin: Pin, mode: AltMode) -> &Self;
    fn set_output(&self, pin: Pin) -> &Self;
    fn set_input(&self, pin: Pin) -> &Self;
}

Required Methods§

source

fn set_alt_mode(&self, pin: Pin, mode: AltMode) -> &Self

Configure the alternate function mode of the specified pin.

source

fn set_output(&self, pin: Pin) -> &Self

Configure the specified pin for output.

source

fn set_input(&self, pin: Pin) -> &Self

Configure the specified pin for input.

Implementations on Foreign Types§

source§

impl GpioExt for RegisterBlock

source§

fn set_alt_mode(&self, (n, m): Pin, mode: AltMode) -> &Self

source§

fn set_output(&self, (n, m): Pin) -> &Self

source§

fn set_input(&self, (n, m): Pin) -> &Self

Implementors§