Struct esp32c2_hal::pac::rtc_cntl::state0::W
pub struct W(_);
Expand description
Register STATE0
writer
Implementations§
§impl W
impl W
pub fn sw_cpu_int(
&mut self
) -> BitWriterRaw<'_, u32, STATE0_SPEC, bool, BitM, 0>
pub fn sw_cpu_int(
&mut self
) -> BitWriterRaw<'_, u32, STATE0_SPEC, bool, BitM, 0>
Bit 0 - rtc software interrupt to main cpu
pub fn slp_reject_cause_clr(
&mut self
) -> BitWriterRaw<'_, u32, STATE0_SPEC, bool, BitM, 1>
pub fn slp_reject_cause_clr(
&mut self
) -> BitWriterRaw<'_, u32, STATE0_SPEC, bool, BitM, 1>
Bit 1 - clear rtc sleep reject cause
pub fn apb2rtc_bridge_sel(
&mut self
) -> BitWriterRaw<'_, u32, STATE0_SPEC, bool, BitM, 22>
pub fn apb2rtc_bridge_sel(
&mut self
) -> BitWriterRaw<'_, u32, STATE0_SPEC, bool, BitM, 22>
Bit 22 - 1: APB to RTC using bridge
pub fn sdio_active_ind(
&mut self
) -> BitWriterRaw<'_, u32, STATE0_SPEC, bool, BitM, 28>
pub fn sdio_active_ind(
&mut self
) -> BitWriterRaw<'_, u32, STATE0_SPEC, bool, BitM, 28>
Bit 28 - SDIO active indication
pub fn slp_wakeup(
&mut self
) -> BitWriterRaw<'_, u32, STATE0_SPEC, bool, BitM, 29>
pub fn slp_wakeup(
&mut self
) -> BitWriterRaw<'_, u32, STATE0_SPEC, bool, BitM, 29>
Bit 29 - leep wakeup bit
pub fn slp_reject(
&mut self
) -> BitWriterRaw<'_, u32, STATE0_SPEC, bool, BitM, 30>
pub fn slp_reject(
&mut self
) -> BitWriterRaw<'_, u32, STATE0_SPEC, bool, BitM, 30>
Bit 30 - leep reject bit
pub fn sleep_en(&mut self) -> BitWriterRaw<'_, u32, STATE0_SPEC, bool, BitM, 31>
pub fn sleep_en(&mut self) -> BitWriterRaw<'_, u32, STATE0_SPEC, bool, BitM, 31>
Bit 31 - sleep enable bit
Methods from Deref<Target = W<STATE0_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.
Trait Implementations§
§impl From<W<STATE0_SPEC>> for W
impl From<W<STATE0_SPEC>> for W
§fn from(writer: W<STATE0_SPEC>) -> W
fn from(writer: W<STATE0_SPEC>) -> W
Converts to this type from the input type.