pub enum Mux {
Af(u8),
Additional,
Analog,
Iomuxc {
mux_register: u32,
mux_mode: u8,
input: Option<(u32, u8)>,
config_register: u32,
},
}Expand description
How a pad is switched to a signal.
Variants§
Af(u8)
STM32 alternate function AFn in the port’s AFRL/AFRH.
Additional
An STM32 pad function that needs no AF (RTC_OUT1, PWR_WKUP1,
TAMP_IN1, ADCx_EXTIn): the owning block takes the pad over.
Analog
An STM32 ADC input: the pad in analog mode.
Iomuxc
An i.MX IOMUXC routing.
Trait Implementations§
impl Copy for Mux
impl Eq for Mux
impl StructuralPartialEq for Mux
Auto Trait Implementations§
impl Forget for Mux
impl Freeze for Mux
impl RefUnwindSafe for Mux
impl Send for Mux
impl Sync for Mux
impl Unpin for Mux
impl UnsafeUnpin for Mux
impl UnwindSafe for Mux
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.