pub enum ClockSource {
XtalClk,
RcFastClk,
OscSlowClk,
RcSlowClk,
}Available on crate feature
unstable only.Expand description
The clock sources of the device.
A clock source is a node of the clock tree that other nodes derive their output
from. Ask a node which source it runs on with its ..._root_source function.
Variants§
Trait Implementations§
Source§impl<O: Into<EnumSet<ClockSource>>> BitAnd<O> for ClockSource
impl<O: Into<EnumSet<ClockSource>>> BitAnd<O> for ClockSource
Source§impl<O: Into<EnumSet<ClockSource>>> BitOr<O> for ClockSource
impl<O: Into<EnumSet<ClockSource>>> BitOr<O> for ClockSource
Source§impl<O: Into<EnumSet<ClockSource>>> BitXor<O> for ClockSource
impl<O: Into<EnumSet<ClockSource>>> BitXor<O> for ClockSource
Source§impl Clone for ClockSource
impl Clone for ClockSource
impl Copy for ClockSource
Source§impl Debug for ClockSource
impl Debug for ClockSource
Source§impl EnumSetConstHelper for ClockSource
impl EnumSetConstHelper for ClockSource
Source§const CONST_INIT_HELPER: __EnumSetInitHelper = __EnumSetInitHelper
const CONST_INIT_HELPER: __EnumSetInitHelper = __EnumSetInitHelper
The instance of the
ConstInitHelper.Source§const CONST_OP_HELPER: __EnumSetOpHelper = __EnumSetOpHelper
const CONST_OP_HELPER: __EnumSetOpHelper = __EnumSetOpHelper
The instance of the
ConstOpHelper.Source§type ConstInitHelper = __EnumSetInitHelper
type ConstInitHelper = __EnumSetInitHelper
A helper type used to convert values to EnumSets at compile-time.
Source§type ConstOpHelper = __EnumSetOpHelper
type ConstOpHelper = __EnumSetOpHelper
A helper type used to implement compile-time operations on enums.
impl EnumSetType for ClockSource
Source§impl EnumSetTypePrivate for ClockSource
impl EnumSetTypePrivate for ClockSource
Source§const ALL_BITS: <Self as EnumSetTypePrivate>::Repr = 15
const ALL_BITS: <Self as EnumSetTypePrivate>::Repr = 15
A mask of bits that are valid in the bitset.
Source§const VARIANT_COUNT: u32 = 4u32
const VARIANT_COUNT: u32 = 4u32
The number of variants in the bitset.
Source§fn enum_into_u32(self) -> u32
fn enum_into_u32(self) -> u32
Converts an enum of this type into its bit position.
Source§unsafe fn enum_from_u32(val: u32) -> Self
unsafe fn enum_from_u32(val: u32) -> Self
Converts a bit position into an enum value.
Source§unsafe fn enum_from_u32_checked(val: u32) -> Self
unsafe fn enum_from_u32_checked(val: u32) -> Self
Converts a bit position into an enum value, with a debug_assert.
impl Eq for ClockSource
Source§impl Not for ClockSource
impl Not for ClockSource
Source§impl PartialEq for ClockSource
impl PartialEq for ClockSource
Source§impl PartialEq<EnumSet<ClockSource>> for ClockSource
impl PartialEq<EnumSet<ClockSource>> for ClockSource
Source§impl<O: Into<EnumSet<ClockSource>>> Sub<O> for ClockSource
impl<O: Into<EnumSet<ClockSource>>> Sub<O> for ClockSource
Auto Trait Implementations§
impl Freeze for ClockSource
impl RefUnwindSafe for ClockSource
impl Send for ClockSource
impl Sync for ClockSource
impl Unpin for ClockSource
impl UnsafeUnpin for ClockSource
impl UnwindSafe for ClockSource
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)