Enum stm32_metapac::rcc::vals::Usbrefcksel
#[repr(u8)]pub enum Usbrefcksel {
Show 16 variants
_RESERVED_0 = 0,
_RESERVED_1 = 1,
_RESERVED_2 = 2,
MHZ16 = 3,
_RESERVED_4 = 4,
_RESERVED_5 = 5,
_RESERVED_6 = 6,
_RESERVED_7 = 7,
MHZ19_2 = 8,
MHZ20 = 9,
MHZ24 = 10,
MHZ32 = 11,
_RESERVED_c = 12,
_RESERVED_d = 13,
MHZ26 = 14,
_RESERVED_f = 15,
}
Variants§
_RESERVED_0 = 0
_RESERVED_1 = 1
_RESERVED_2 = 2
MHZ16 = 3
The kernel clock frequency provided to the USBPHYC is 16 MHz.
_RESERVED_4 = 4
_RESERVED_5 = 5
_RESERVED_6 = 6
_RESERVED_7 = 7
MHZ19_2 = 8
The kernel clock frequency provided to the USBPHYC is 19.2 MHz.
MHZ20 = 9
The kernel clock frequency provided to the USBPHYC is 20MHz.
MHZ24 = 10
The kernel clock frequency provided to the USBPHYC is 24 MHz (default after reset).
MHZ32 = 11
The kernel clock frequency provided to the USBPHYC is 32 MHz.
_RESERVED_c = 12
_RESERVED_d = 13
MHZ26 = 14
The kernel clock frequency provided to the USBPHYC is 26 MHz.
_RESERVED_f = 15
Implementations§
§impl Usbrefcksel
impl Usbrefcksel
pub const fn from_bits(val: u8) -> Usbrefcksel
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Usbrefcksel
impl Clone for Usbrefcksel
§fn clone(&self) -> Usbrefcksel
fn clone(&self) -> Usbrefcksel
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<Usbrefcksel> for u8
impl From<Usbrefcksel> for u8
§fn from(val: Usbrefcksel) -> u8
fn from(val: Usbrefcksel) -> u8
Converts to this type from the input type.
§impl From<u8> for Usbrefcksel
impl From<u8> for Usbrefcksel
§fn from(val: u8) -> Usbrefcksel
fn from(val: u8) -> Usbrefcksel
Converts to this type from the input type.
§impl Ord for Usbrefcksel
impl Ord for Usbrefcksel
§fn cmp(&self, other: &Usbrefcksel) -> Ordering
fn cmp(&self, other: &Usbrefcksel) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for Usbrefcksel
impl PartialEq for Usbrefcksel
§fn eq(&self, other: &Usbrefcksel) -> bool
fn eq(&self, other: &Usbrefcksel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for Usbrefcksel
impl PartialOrd for Usbrefcksel
§fn partial_cmp(&self, other: &Usbrefcksel) -> Option<Ordering>
fn partial_cmp(&self, other: &Usbrefcksel) -> 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 Usbrefcksel
impl Eq for Usbrefcksel
impl StructuralEq for Usbrefcksel
impl StructuralPartialEq for Usbrefcksel
Auto Trait Implementations§
impl RefUnwindSafe for Usbrefcksel
impl Send for Usbrefcksel
impl Sync for Usbrefcksel
impl Unpin for Usbrefcksel
impl UnwindSafe for Usbrefcksel
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