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

pub trait Input {
    fn read(&self) -> bool;

    fn read_activation(&self, mode: ActivationMode) -> ActivationState { ... }
}

Required methods

fn read(&self) -> bool

Get the current state of an input GPIO pin. For an output pin, return the output; for an input pin, return the input; for disabled or function pins the value is undefined.

Loading content...

Provided methods

fn read_activation(&self, mode: ActivationMode) -> ActivationState

Get the current state of a GPIO pin, for a given activation mode.

Loading content...

Implementors

impl<'a, IP: InterruptPin<'a>> Input for InterruptValueWrapper<'a, IP>[src]

Loading content...