[][src]Trait kernel::hil::gpio::Output

pub trait Output {
    fn set(&self);
fn clear(&self);
fn toggle(&self) -> bool; }

Required methods

fn set(&self)

Set the GPIO pin high. If the pin is not an output or input/output, this call is ignored.

fn clear(&self)

Set the GPIO pin low. If the pin is not an output or input/output, this call is ignored.

fn toggle(&self) -> bool

Toggle the GPIO pin. If the pin was high, set it low. If the pin was low, set it high. If the pin is not an output or input/output, this call is ignored. Return the new value of the pin.

Loading content...

Implementors

impl Output for InterruptValueWrapper[src]

Loading content...