Enum stm32_metapac::rcc::vals::Usart2sel
#[repr(u8)]pub enum Usart2sel {
PCLK1 = 0,
SYS = 1,
HSI = 2,
LSE = 3,
}
Variants§
PCLK1 = 0
APB1 clock (PCLK1) is selected as USART clock
SYS = 1
System clock is selected as USART clock
HSI = 2
HSI clock is selected as USART clock
LSE = 3
LSE clock is selected as USART clock
Implementations§
Trait Implementations§
§impl Ord for Usart2sel
impl Ord for Usart2sel
§impl PartialOrd for Usart2sel
impl PartialOrd for Usart2sel
§fn partial_cmp(&self, other: &Usart2sel) -> Option<Ordering>
fn partial_cmp(&self, other: &Usart2sel) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Usart2sel
impl Eq for Usart2sel
impl StructuralEq for Usart2sel
impl StructuralPartialEq for Usart2sel
Auto Trait Implementations§
impl RefUnwindSafe for Usart2sel
impl Send for Usart2sel
impl Sync for Usart2sel
impl Unpin for Usart2sel
impl UnwindSafe for Usart2sel
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