Enum stm32_metapac::syscfg::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 OTG_HS PHY 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 OTG_HS PHY is 19.2 MHz.
MHZ20 = 9
The kernel clock frequency provided to the OTG_HS PHY is 20MHz.
MHZ24 = 10
The kernel clock frequency provided to the OTG_HS PHY is 24 MHz (default after reset).
MHZ32 = 11
The kernel clock frequency provided to the OTG_HS PHY is 32 MHz.
_RESERVED_c = 12
_RESERVED_d = 13
MHZ26 = 14
The kernel clock frequency provided to the OTG_HS PHY 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
§impl PartialEq for Usbrefcksel
impl PartialEq for Usbrefcksel
§impl PartialOrd for Usbrefcksel
impl PartialOrd for Usbrefcksel
impl Copy for Usbrefcksel
impl Eq for Usbrefcksel
impl StructuralPartialEq for Usbrefcksel
Auto Trait Implementations§
impl Freeze for Usbrefcksel
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)