Enum embassy_stm32::gpio::low_level::AFType
source · pub enum AFType {
Input,
OutputPushPull,
OutputOpenDrain,
}
Expand description
Alternate function type settings
Variants§
Input
Input
OutputPushPull
Output, drive the pin both high or low.
OutputOpenDrain
Output, drive the pin low, or don’t drive it at all if the output level is high.
Trait Implementations§
source§impl From<OutputType> for AFType
impl From<OutputType> for AFType
source§fn from(value: OutputType) -> Self
fn from(value: OutputType) -> Self
Converts to this type from the input type.
impl Copy for AFType
Auto Trait Implementations§
impl RefUnwindSafe for AFType
impl Send for AFType
impl Sync for AFType
impl Unpin for AFType
impl UnwindSafe for AFType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more