Enum stm32_metapac::rcc::vals::Systicksel
#[repr(u8)]pub enum Systicksel {
HCLK1_DIV_8 = 0,
LSI = 1,
LSE = 2,
_RESERVED_3 = 3,
}
Variants§
HCLK1_DIV_8 = 0
rcc_hclk/8 selected as clock source (default after reset)
LSI = 1
lsi_ker_ck[1] selected as clock source
LSE = 2
lse_ck[1] selected as clock source
_RESERVED_3 = 3
Implementations§
§impl Systicksel
impl Systicksel
pub const fn from_bits(val: u8) -> Systicksel
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Systicksel
impl Clone for Systicksel
§fn clone(&self) -> Systicksel
fn clone(&self) -> Systicksel
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 more§impl From<Systicksel> for u8
impl From<Systicksel> for u8
§fn from(val: Systicksel) -> u8
fn from(val: Systicksel) -> u8
Converts to this type from the input type.
§impl From<u8> for Systicksel
impl From<u8> for Systicksel
§fn from(val: u8) -> Systicksel
fn from(val: u8) -> Systicksel
Converts to this type from the input type.
§impl Ord for Systicksel
impl Ord for Systicksel
§impl PartialEq for Systicksel
impl PartialEq for Systicksel
§fn eq(&self, other: &Systicksel) -> bool
fn eq(&self, other: &Systicksel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for Systicksel
impl PartialOrd for Systicksel
§fn partial_cmp(&self, other: &Systicksel) -> Option<Ordering>
fn partial_cmp(&self, other: &Systicksel) -> 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 Systicksel
impl Eq for Systicksel
impl StructuralEq for Systicksel
impl StructuralPartialEq for Systicksel
Auto Trait Implementations§
impl RefUnwindSafe for Systicksel
impl Send for Systicksel
impl Sync for Systicksel
impl Unpin for Systicksel
impl UnwindSafe for Systicksel
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