#[repr(u8)]pub enum Sm2ctrl2ClkSel {
IPBUS = 0,
EXT_CLK = 1,
AUX_CLK = 2,
_RESERVED_3 = 3,
}Variants§
IPBUS = 0
The IPBus clock is used as the clock for the local prescaler and counter.
EXT_CLK = 1
EXT_CLK is used as the clock for the local prescaler and counter.
AUX_CLK = 2
Submodule 0’s clock (AUX_CLK) is used as the source clock for the local prescaler and counter. This setting should not be used in submodule 0 as it forces the clock to logic 0.
_RESERVED_3 = 3
Implementations§
Trait Implementations§
Source§impl Clone for Sm2ctrl2ClkSel
impl Clone for Sm2ctrl2ClkSel
Source§fn clone(&self) -> Sm2ctrl2ClkSel
fn clone(&self) -> Sm2ctrl2ClkSel
Returns a duplicate 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 moreSource§impl Debug for Sm2ctrl2ClkSel
impl Debug for Sm2ctrl2ClkSel
Source§impl From<Sm2ctrl2ClkSel> for u8
impl From<Sm2ctrl2ClkSel> for u8
Source§fn from(val: Sm2ctrl2ClkSel) -> u8
fn from(val: Sm2ctrl2ClkSel) -> u8
Converts to this type from the input type.
Source§impl From<u8> for Sm2ctrl2ClkSel
impl From<u8> for Sm2ctrl2ClkSel
Source§fn from(val: u8) -> Sm2ctrl2ClkSel
fn from(val: u8) -> Sm2ctrl2ClkSel
Converts to this type from the input type.
Source§impl Ord for Sm2ctrl2ClkSel
impl Ord for Sm2ctrl2ClkSel
Source§fn cmp(&self, other: &Sm2ctrl2ClkSel) -> Ordering
fn cmp(&self, other: &Sm2ctrl2ClkSel) -> 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
Source§impl PartialEq for Sm2ctrl2ClkSel
impl PartialEq for Sm2ctrl2ClkSel
Source§impl PartialOrd for Sm2ctrl2ClkSel
impl PartialOrd for Sm2ctrl2ClkSel
impl Copy for Sm2ctrl2ClkSel
impl Eq for Sm2ctrl2ClkSel
impl StructuralPartialEq for Sm2ctrl2ClkSel
Auto Trait Implementations§
impl Freeze for Sm2ctrl2ClkSel
impl RefUnwindSafe for Sm2ctrl2ClkSel
impl Send for Sm2ctrl2ClkSel
impl Sync for Sm2ctrl2ClkSel
impl Unpin for Sm2ctrl2ClkSel
impl UnwindSafe for Sm2ctrl2ClkSel
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