Enum stm32_metapac::ucpd::vals::PscUsbpdclk
#[repr(u8)]pub enum PscUsbpdclk {
DIV1 = 0,
DIV2 = 1,
DIV4 = 2,
DIV8 = 3,
DIV16 = 4,
_RESERVED_5 = 5,
_RESERVED_6 = 6,
_RESERVED_7 = 7,
}
Variants§
DIV1 = 0
1 (bypass)
DIV2 = 1
2
DIV4 = 2
4
DIV8 = 3
8
DIV16 = 4
16
_RESERVED_5 = 5
_RESERVED_6 = 6
_RESERVED_7 = 7
Implementations§
§impl PscUsbpdclk
impl PscUsbpdclk
pub const fn from_bits(val: u8) -> PscUsbpdclk
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for PscUsbpdclk
impl Clone for PscUsbpdclk
§fn clone(&self) -> PscUsbpdclk
fn clone(&self) -> PscUsbpdclk
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<PscUsbpdclk> for u8
impl From<PscUsbpdclk> for u8
§fn from(val: PscUsbpdclk) -> u8
fn from(val: PscUsbpdclk) -> u8
Converts to this type from the input type.
§impl From<u8> for PscUsbpdclk
impl From<u8> for PscUsbpdclk
§fn from(val: u8) -> PscUsbpdclk
fn from(val: u8) -> PscUsbpdclk
Converts to this type from the input type.
§impl Ord for PscUsbpdclk
impl Ord for PscUsbpdclk
§impl PartialEq for PscUsbpdclk
impl PartialEq for PscUsbpdclk
§impl PartialOrd for PscUsbpdclk
impl PartialOrd for PscUsbpdclk
impl Copy for PscUsbpdclk
impl Eq for PscUsbpdclk
impl StructuralPartialEq for PscUsbpdclk
Auto Trait Implementations§
impl Freeze for PscUsbpdclk
impl RefUnwindSafe for PscUsbpdclk
impl Send for PscUsbpdclk
impl Sync for PscUsbpdclk
impl Unpin for PscUsbpdclk
impl UnwindSafe for PscUsbpdclk
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
)