pub enum AotClockSource {
Xosc(FractionalFrequency),
Lposc(FractionalFrequency),
GpioLpOsc(FractionalFrequency),
Gpio1kHz,
Gpio1Hz,
}Expand description
Specify which clock source the POWMAN Always-On-Timer is clocked from.
Variants§
Xosc(FractionalFrequency)
On-Chip Crystal Oscillator (XOSC).
When the chip core is powered, the tick source can be switched the on-chip crystal oscillator for greater precision.
Lposc(FractionalFrequency)
On-Chip Low-Power Oscillator (LPOSC).
The LPOSC frequency is not precise and may vary with voltage and temperature
GpioLpOsc(FractionalFrequency)
External GPIO pin input to the Low-Power Oscillator (LPOSC).
Uses the pin provided when the POWMAN driver was constructed.
Gpio1kHz
External 1 kHz GPIO pin.
Uses the pin provided when the POWMAN driver was constructed.
Gpio1Hz
External 1 Hz GPIO pin
Uses the pin provided when the POWMAN driver was constructed.
Implementations§
Source§impl AotClockSource
impl AotClockSource
Sourcepub const fn new_xosc(freq: FractionalFrequency) -> AotClockSource
pub const fn new_xosc(freq: FractionalFrequency) -> AotClockSource
Create a clock source, using the XOSC running at the given frequency.
Sourcepub const fn new_lposc(
freq: FractionalFrequency,
) -> Result<AotClockSource, ClockSourceError>
pub const fn new_lposc( freq: FractionalFrequency, ) -> Result<AotClockSource, ClockSourceError>
Create a clock source, using the LPOSC running at the given frequency.
Gives an error if the frequency is above 256 kHz.
Trait Implementations§
Source§impl Clone for AotClockSource
impl Clone for AotClockSource
Source§fn clone(&self) -> AotClockSource
fn clone(&self) -> AotClockSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AotClockSource
impl Debug for AotClockSource
Source§impl Display for AotClockSource
impl Display for AotClockSource
Source§impl PartialEq for AotClockSource
impl PartialEq for AotClockSource
impl Copy for AotClockSource
impl Eq for AotClockSource
impl StructuralPartialEq for AotClockSource
Auto Trait Implementations§
impl Freeze for AotClockSource
impl RefUnwindSafe for AotClockSource
impl Send for AotClockSource
impl Sync for AotClockSource
impl Unpin for AotClockSource
impl UnwindSafe for AotClockSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more