#[repr(u8)]pub enum SafeClockDiv {
Div1 = 0,
Div2 = 1,
}
Expand description
Division factor for the safe clock prescaler
If an XOSC32K clock failure is detected, the hardware will switch to a safe
clock derived from the OscUlp32k
. This enum sets the divider between it
and the safe clock frequency. The divider can be 1 or 2.
Variants§
Trait Implementations§
Source§impl Clone for SafeClockDiv
impl Clone for SafeClockDiv
Source§fn clone(&self) -> SafeClockDiv
fn clone(&self) -> SafeClockDiv
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 moreSource§impl Default for SafeClockDiv
impl Default for SafeClockDiv
Source§fn default() -> SafeClockDiv
fn default() -> SafeClockDiv
Returns the “default value” for a type. Read more
Source§impl From<SafeClockDiv> for bool
impl From<SafeClockDiv> for bool
Source§fn from(div: SafeClockDiv) -> Self
fn from(div: SafeClockDiv) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SafeClockDiv
impl PartialEq for SafeClockDiv
impl Copy for SafeClockDiv
impl Eq for SafeClockDiv
impl StructuralPartialEq for SafeClockDiv
Auto Trait Implementations§
impl Freeze for SafeClockDiv
impl RefUnwindSafe for SafeClockDiv
impl Send for SafeClockDiv
impl Sync for SafeClockDiv
impl Unpin for SafeClockDiv
impl UnwindSafe for SafeClockDiv
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