[−][src]Struct lpc8xx_hal::pmu::LowPowerClock
The 10 kHz low-power clock
This is one of the clocks that can be used to run the self-wake-up timer (WKT). See user manual, section 18.5.1.
Methods
impl LowPowerClock<Disabled>
[src]
pub fn enable(self, pmu: &mut Handle) -> LowPowerClock<Enabled>
[src]
Enable the low-power clock
This method is only available, if LowPowerClock
is in the Disabled
state. Code that attempts to call this method when the clock is already
enabled will not compile.
Consumes this instance of LowPowerClock
and returns another instance
that has its State
type parameter set to Enabled
. That new
instance implements clock::Enabled
, which might be required by APIs
that need an enabled clock.
impl LowPowerClock<Enabled>
[src]
pub fn disable(self, pmu: &mut Handle) -> LowPowerClock<Disabled>
[src]
Disable the low-power clock
This method is only available, if LowPowerClock
is in the Enabled
state. Code that attempts to call this method when the clock is already
disabled will not compile.
Consumes this instance of LowPowerClock
and returns another instance
that has its State
type parameter set to Disabled
.
Trait Implementations
impl<State> Frequency for LowPowerClock<State>
[src]
impl Enabled for LowPowerClock<Enabled>
[src]
impl<State> Clock for LowPowerClock<State>
[src]
Auto Trait Implementations
impl<State> Unpin for LowPowerClock<State> where
State: Unpin,
State: Unpin,
impl<State> Send for LowPowerClock<State> where
State: Send,
State: Send,
impl<State> Sync for LowPowerClock<State> where
State: Sync,
State: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self