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

pub trait Pin {
    fn make_output(&self);
fn make_input(&self);
fn disable(&self);
fn set(&self);
fn clear(&self);
fn toggle(&self);
fn read(&self) -> bool;
fn enable_interrupt(&self, identifier: usize, mode: InterruptMode);
fn disable_interrupt(&self); }

Interface for synchronous GPIO pins.

Required Methods

Configure the GPIO pin as an output pin.

Configure the GPIO pin as an input pin.

Disable the GPIO pin and put it into its lowest power mode.

Set the GPIO pin high. It must be an output.

Set the GPIO pin low. It must be an output.

Toggle the GPIO pin. It must be an output.

Get the current state of an input GPIO pin.

Enable an interrupt on the GPIO pin. It must be configured as an interrupt. The identifier can be any value and will be returned to you when the interrupt on this pin fires.

Disable the interrupt for the GPIO pin.

Implementors