Enum imxrt_hal::gpt::ClockSource
source · #[repr(u32)]pub enum ClockSource {
NoClock = 0,
PeripheralClock = 1,
HighFrequencyReferenceClock = 2,
ExternalClock = 3,
LowFrequencyReferenceClock = 4,
CrystalOscillator = 5,
}
Expand description
GPT clock source.
Variants§
NoClock = 0
No clock selection
PeripheralClock = 1
Peripheral clock (ipg_clk
)
HighFrequencyReferenceClock = 2
High frequency reference clock (ipg_clk_highfreq
)
ExternalClock = 3
External clock
LowFrequencyReferenceClock = 4
Low frequency reference clock (ipg_clk_32k
)
CrystalOscillator = 5
Crystal oscillator as reference clock (ipg_clk_24M
)
Trait Implementations§
source§impl Clone for ClockSource
impl Clone for ClockSource
source§fn clone(&self) -> ClockSource
fn clone(&self) -> ClockSource
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 Debug for ClockSource
impl Debug for ClockSource
source§impl PartialEq for ClockSource
impl PartialEq for ClockSource
source§fn eq(&self, other: &ClockSource) -> bool
fn eq(&self, other: &ClockSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ClockSource
impl Eq for ClockSource
impl StructuralEq for ClockSource
impl StructuralPartialEq for ClockSource
Auto Trait Implementations§
impl RefUnwindSafe for ClockSource
impl Send for ClockSource
impl Sync for ClockSource
impl Unpin for ClockSource
impl UnwindSafe for ClockSource
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