Trait embedded_c_sdk_bind_hal::gpio::BidirectionPin

source ·
pub trait BidirectionPin {
    // Required methods
    fn mode_ctrl(&self, mode: BidirectionPinMode);
    fn set(&self, level: bool);
    fn get(&self) -> bool;
}
Expand description

Trait for controlling bidirectional GPIO pins.

Required Methods§

source

fn mode_ctrl(&self, mode: BidirectionPinMode)

Sets the mode of the GPIO pin.

source

fn set(&self, level: bool)

Sets the level of the GPIO pin.

source

fn get(&self) -> bool

Gets the current level of the GPIO pin.

Implementors§