Trait embassy_stm32::gpio::low_level::Pin
source · pub trait Pin {
// Required method
fn pin_port(&self) -> u8;
// Provided methods
fn _pin(&self) -> u8 { ... }
fn _port(&self) -> u8 { ... }
fn block(&self) -> Gpio { ... }
fn set_high(&self) { ... }
fn set_low(&self) { ... }
fn set_as_af(&self, af_num: u8, af_type: AFType) { ... }
fn set_as_af_pull(&self, _af_num: u8, af_type: AFType, pull: Pull) { ... }
fn set_as_analog(&self) { ... }
fn set_as_disconnected(&self) { ... }
fn set_speed(&self, speed: Speed) { ... }
}
Required Methods§
Provided Methods§
fn _pin(&self) -> u8
fn _port(&self) -> u8
fn block(&self) -> Gpio
fn set_as_af(&self, af_num: u8, af_type: AFType)
fn set_as_af_pull(&self, _af_num: u8, af_type: AFType, pull: Pull)
fn set_as_analog(&self)
sourcefn set_as_disconnected(&self)
fn set_as_disconnected(&self)
Set the pin as “disconnected”, ie doing nothing and consuming the lowest amount of power possible.
This is currently the same as set_as_analog but is semantically different really. Drivers should set_as_disconnected pins when dropped.