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