Trait avr_oxide::hal::generic::port::Pin

source ·
pub trait Pin {
    // Required methods
    fn set_mode(&self, mode: PinMode);
    fn toggle(&self);
    fn set_high(&self);
    fn set_low(&self);
    fn set(&self, high: bool);
    fn get(&self) -> bool;
    fn set_interrupt_mode(&self, mode: InterruptMode);
    fn listen(&'static self, handler: PinIsrCallback);
}

Required Methods§

source

fn set_mode(&self, mode: PinMode)

Set the input/output mode for this pin

source

fn toggle(&self)

Toggle this pin’s output level

source

fn set_high(&self)

Set the pin’s output to high

source

fn set_low(&self)

Set the pin’s output to low

source

fn set(&self, high: bool)

Set the pin’s output according to the boolean (true == high, false == low)

source

fn get(&self) -> bool

Get the pin’s input; true == high, false == low.

source

fn set_interrupt_mode(&self, mode: InterruptMode)

Set when this pin will generate interrupts

source

fn listen(&'static self, handler: PinIsrCallback)

Add a handler to be called when this pin generates an interrupt

Implementors§