pub struct LowPowerClock<State = Enabled> { /* private fields */ }Expand description
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.
Implementations§
Source§impl LowPowerClock<Disabled>
impl LowPowerClock<Disabled>
Sourcepub fn enable(self, pmu: &mut Handle) -> LowPowerClock<Enabled>
pub fn enable(self, pmu: &mut Handle) -> LowPowerClock<Enabled>
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.
Source§impl LowPowerClock<Enabled>
impl LowPowerClock<Enabled>
Sourcepub fn disable(self, pmu: &mut Handle) -> LowPowerClock<Disabled>
pub fn disable(self, pmu: &mut Handle) -> LowPowerClock<Disabled>
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.