Struct esp32s3_hal::pac::rtc_cntl::retention_ctrl::W
pub struct W(_);
Expand description
Register RETENTION_CTRL
writer
Implementations§
§impl W
impl W
pub fn retention_tag_mode(
&mut self
) -> FieldWriterRaw<'_, u32, RETENTION_CTRL_SPEC, u8, u8, Unsafe, 4, 10>
pub fn retention_tag_mode(
&mut self
) -> FieldWriterRaw<'_, u32, RETENTION_CTRL_SPEC, u8, u8, Unsafe, 4, 10>
Bits 10:13 - No public
pub fn retention_target(
&mut self
) -> FieldWriterRaw<'_, u32, RETENTION_CTRL_SPEC, u8, u8, Unsafe, 2, 14>
pub fn retention_target(
&mut self
) -> FieldWriterRaw<'_, u32, RETENTION_CTRL_SPEC, u8, u8, Unsafe, 2, 14>
Bits 14:15 - congfigure retention target cpu and/or tag
pub fn retention_clk_sel(
&mut self
) -> BitWriterRaw<'_, u32, RETENTION_CTRL_SPEC, bool, BitM, 16>
pub fn retention_clk_sel(
&mut self
) -> BitWriterRaw<'_, u32, RETENTION_CTRL_SPEC, bool, BitM, 16>
Bit 16 - No public
pub fn retention_done_wait(
&mut self
) -> FieldWriterRaw<'_, u32, RETENTION_CTRL_SPEC, u8, u8, Unsafe, 3, 17>
pub fn retention_done_wait(
&mut self
) -> FieldWriterRaw<'_, u32, RETENTION_CTRL_SPEC, u8, u8, Unsafe, 3, 17>
Bits 17:19 - wait retention done cycle
pub fn retention_clkoff_wait(
&mut self
) -> FieldWriterRaw<'_, u32, RETENTION_CTRL_SPEC, u8, u8, Unsafe, 4, 20>
pub fn retention_clkoff_wait(
&mut self
) -> FieldWriterRaw<'_, u32, RETENTION_CTRL_SPEC, u8, u8, Unsafe, 4, 20>
Bits 20:23 - wait clk off cycle
pub fn retention_en(
&mut self
) -> BitWriterRaw<'_, u32, RETENTION_CTRL_SPEC, bool, BitM, 24>
pub fn retention_en(
&mut self
) -> BitWriterRaw<'_, u32, RETENTION_CTRL_SPEC, bool, BitM, 24>
Bit 24 - enable retention
pub fn retention_wait(
&mut self
) -> FieldWriterRaw<'_, u32, RETENTION_CTRL_SPEC, u8, u8, Unsafe, 7, 25>
pub fn retention_wait(
&mut self
) -> FieldWriterRaw<'_, u32, RETENTION_CTRL_SPEC, u8, u8, Unsafe, 7, 25>
Bits 25:31 - wait cycles for rention operation
Methods from Deref<Target = W<RETENTION_CTRL_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<RETENTION_CTRL_SPEC>> for W
impl From<W<RETENTION_CTRL_SPEC>> for W
§fn from(writer: W<RETENTION_CTRL_SPEC>) -> W
fn from(writer: W<RETENTION_CTRL_SPEC>) -> W
Converts to this type from the input type.