Enum atsamd_hal::clock::v2::xosc32k::SafeClockDiv
source · [−]#[repr(u8)]
pub enum SafeClockDiv {
Div1,
Div2,
}
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
Div1
Div2
Trait Implementations
sourceimpl Clone for SafeClockDiv
impl Clone for SafeClockDiv
sourcefn clone(&self) -> SafeClockDiv
fn clone(&self) -> SafeClockDiv
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Default for SafeClockDiv
impl Default for SafeClockDiv
sourcefn default() -> SafeClockDiv
fn default() -> SafeClockDiv
Returns the “default value” for a type. Read more
sourceimpl From<SafeClockDiv> for bool
impl From<SafeClockDiv> for bool
sourcefn from(div: SafeClockDiv) -> Self
fn from(div: SafeClockDiv) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SafeClockDiv> for SafeClockDiv
impl PartialEq<SafeClockDiv> for SafeClockDiv
sourcefn eq(&self, other: &SafeClockDiv) -> bool
fn eq(&self, other: &SafeClockDiv) -> bool
impl Copy for SafeClockDiv
impl Eq for SafeClockDiv
impl StructuralEq for SafeClockDiv
impl StructuralPartialEq for SafeClockDiv
Auto Trait Implementations
impl RefUnwindSafe for SafeClockDiv
impl Send for SafeClockDiv
impl Sync for SafeClockDiv
impl Unpin for SafeClockDiv
impl UnwindSafe for SafeClockDiv
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more