Enum stm32f412g::gpio::AlternateFunction
source · #[repr(u32)]pub enum AlternateFunction {
Show 16 variants
AF0 = 0,
AF1 = 1,
AF2 = 2,
AF3 = 3,
AF4 = 4,
AF5 = 5,
AF6 = 6,
AF7 = 7,
AF8 = 8,
AF9 = 9,
AF10 = 10,
AF11 = 11,
AF12 = 12,
AF13 = 13,
AF14 = 14,
AF15 = 15,
}
Expand description
Alternate functions that may be assigned to a Pin
.
GPIO pins on the STM32F446RE may serve multiple functions. In addition to the default functionality, each pin can be assigned up to sixteen different alternate functions. The various functions for each pin are described in “Alternate Function”“ section of the STM32F446RE datasheet1.
Alternate Function bit mapping is shown here2.
Variants§
AF0 = 0
AF1 = 1
AF2 = 2
AF3 = 3
AF4 = 4
AF5 = 5
AF6 = 6
AF7 = 7
AF8 = 8
AF9 = 9
AF10 = 10
AF11 = 11
AF12 = 12
AF13 = 13
AF14 = 14
AF15 = 15
Auto Trait Implementations§
impl Freeze for AlternateFunction
impl RefUnwindSafe for AlternateFunction
impl Send for AlternateFunction
impl Sync for AlternateFunction
impl Unpin for AlternateFunction
impl UnwindSafe for AlternateFunction
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