Struct esp32c2_hal::pac::rtc_cntl::low_power_st::W
pub struct W(_);
Expand description
Register LOW_POWER_ST
writer
Implementations§
§impl W
impl W
pub fn xpd_dig(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 8>
pub fn xpd_dig(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 8>
Bit 8 - digital wrap power down
pub fn touch_state_start(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 9>
pub fn touch_state_start(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 9>
Bit 9 - touch should start to work
pub fn touch_state_switch(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 10>
pub fn touch_state_switch(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 10>
Bit 10 - touch is about to working. Switch rtc main state
pub fn touch_state_slp(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 11>
pub fn touch_state_slp(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 11>
Bit 11 - touch is in sleep state
pub fn touch_state_done(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 12>
pub fn touch_state_done(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 12>
Bit 12 - touch is done
pub fn cocpu_state_start(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 13>
pub fn cocpu_state_start(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 13>
Bit 13 - ulp/cocpu should start to work
pub fn cocpu_state_switch(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 14>
pub fn cocpu_state_switch(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 14>
Bit 14 - ulp/cocpu is about to working. Switch rtc main state
pub fn cocpu_state_slp(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 15>
pub fn cocpu_state_slp(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 15>
Bit 15 - ulp/cocpu is in sleep state
pub fn cocpu_state_done(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 16>
pub fn cocpu_state_done(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 16>
Bit 16 - ulp/cocpu is done
pub fn main_state_xtal_iso(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 17>
pub fn main_state_xtal_iso(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 17>
Bit 17 - no use any more
pub fn main_state_pll_on(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 18>
pub fn main_state_pll_on(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 18>
Bit 18 - rtc main state machine is in states that pll should be running
pub fn rdy_for_wakeup(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 19>
pub fn rdy_for_wakeup(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 19>
Bit 19 - rtc is ready to receive wake up trigger from wake up source
pub fn main_state_wait_end(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 20>
pub fn main_state_wait_end(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 20>
Bit 20 - rtc main state machine has been waited for some cycles
pub fn in_wakeup_state(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 21>
pub fn in_wakeup_state(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 21>
Bit 21 - rtc main state machine is in the states of wakeup process
pub fn in_low_power_state(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 22>
pub fn in_low_power_state(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 22>
Bit 22 - rtc main state machine is in the states of low power
pub fn main_state_in_wait_8m(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 23>
pub fn main_state_in_wait_8m(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 23>
Bit 23 - rtc main state machine is in wait 8m state
pub fn main_state_in_wait_pll(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 24>
pub fn main_state_in_wait_pll(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 24>
Bit 24 - rtc main state machine is in wait pll state
pub fn main_state_in_wait_xtl(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 25>
pub fn main_state_in_wait_xtl(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 25>
Bit 25 - rtc main state machine is in wait xtal state
pub fn main_state_in_slp(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 26>
pub fn main_state_in_slp(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 26>
Bit 26 - rtc main state machine is in sleep state
pub fn main_state_in_idle(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 27>
pub fn main_state_in_idle(
&mut self
) -> BitWriterRaw<'_, u32, LOW_POWER_ST_SPEC, bool, BitM, 27>
Bit 27 - rtc main state machine is in idle state
pub fn main_state(
&mut self
) -> FieldWriterRaw<'_, u32, LOW_POWER_ST_SPEC, u8, u8, Unsafe, 4, 28>
pub fn main_state(
&mut self
) -> FieldWriterRaw<'_, u32, LOW_POWER_ST_SPEC, u8, u8, Unsafe, 4, 28>
Bits 28:31 - rtc main state machine status
Methods from Deref<Target = W<LOW_POWER_ST_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.