pub enum AlternateFunction {
Function0 = 0,
Function1 = 1,
Function2 = 2,
Function3 = 3,
Function4 = 4,
Function5 = 5,
}Expand description
Alternate functions
GPIO pins can be configured for various functions, such as GPIO
or being directly connected to a peripheral’s signal like UART, SPI, etc.
The AlternateFunction enum allows selecting one of several functions that
a pin can perform, rather than using it as a general-purpose input or
output.
The different variants correspond to different functionality depending on the chip and the specific pin. For more information, refer to your chip’s Technical Reference Manual
Variants§
Function0 = 0
Alternate function 0.
Function1 = 1
Alternate function 1.
Function2 = 2
Alternate function 2.
Function3 = 3
Alternate function 3.
Function4 = 4
Alternate function 4.
Function5 = 5
Alternate function 5.
Trait Implementations§
Source§impl Clone for AlternateFunction
impl Clone for AlternateFunction
Source§fn clone(&self) -> AlternateFunction
fn clone(&self) -> AlternateFunction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlternateFunction
impl Debug for AlternateFunction
Source§impl PartialEq for AlternateFunction
impl PartialEq for AlternateFunction
Source§impl TryFrom<usize> for AlternateFunction
impl TryFrom<usize> for AlternateFunction
impl Copy for AlternateFunction
impl Eq for AlternateFunction
impl StructuralPartialEq for AlternateFunction
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