Trait OpenDrainPin

Source
pub trait OpenDrainPin {
    // Required methods
    fn set(&mut self, level: bool);
    fn get(&mut self) -> bool;
}
Expand description

Trait for controlling bidirectional GPIO pins.

Required Methods§

Source

fn set(&mut self, level: bool)

Sets the level of the GPIO pin.

Source

fn get(&mut self) -> bool

Gets the current level of the GPIO pin.

Implementors§