Struct esp32c2_hal::pac::rtc_cntl::slp_timer1::W
pub struct W(_);
Expand description
Register SLP_TIMER1
writer
Implementations§
§impl W
impl W
pub fn slp_val_hi(
&mut self
) -> FieldWriterRaw<'_, u32, SLP_TIMER1_SPEC, u16, u16, Unsafe, 16, 0>
pub fn slp_val_hi(
&mut self
) -> FieldWriterRaw<'_, u32, SLP_TIMER1_SPEC, u16, u16, Unsafe, 16, 0>
Bits 0:15 - RTC sleep timer high 16 bits
pub fn main_timer_alarm_en(
&mut self
) -> BitWriterRaw<'_, u32, SLP_TIMER1_SPEC, bool, BitM, 16>
pub fn main_timer_alarm_en(
&mut self
) -> BitWriterRaw<'_, u32, SLP_TIMER1_SPEC, bool, BitM, 16>
Bit 16 - timer alarm enable bit
Methods from Deref<Target = W<SLP_TIMER1_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<SLP_TIMER1_SPEC>> for W
impl From<W<SLP_TIMER1_SPEC>> for W
§fn from(writer: W<SLP_TIMER1_SPEC>) -> W
fn from(writer: W<SLP_TIMER1_SPEC>) -> W
Converts to this type from the input type.