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§
sourcefn mode_ctrl(&self, mode: BidirectionPinMode)
fn mode_ctrl(&self, mode: BidirectionPinMode)
Sets the mode of the GPIO pin.