Struct esp32c3_hal::pac::rtc_cntl::retention_ctrl::W
pub struct W(_);
Expand description
Register RETENTION_CTRL
writer
Implementations
impl W
impl W
pub fn retention_clk_sel(
&mut self
) -> BitWriterRaw<'_, u32, RETENTION_CTRL_SPEC, bool, BitM, 18>
pub fn retention_clk_sel(
&mut self
) -> BitWriterRaw<'_, u32, RETENTION_CTRL_SPEC, bool, BitM, 18>
Bit 18 - Retention clk sel
pub fn retention_done_wait(
&mut self
) -> FieldWriterRaw<'_, u32, RETENTION_CTRL_SPEC, u8, u8, Unsafe, 3, 19>
pub fn retention_done_wait(
&mut self
) -> FieldWriterRaw<'_, u32, RETENTION_CTRL_SPEC, u8, u8, Unsafe, 3, 19>
Bits 19:21 - Retention done wait time
pub fn retention_clkoff_wait(
&mut self
) -> FieldWriterRaw<'_, u32, RETENTION_CTRL_SPEC, u8, u8, Unsafe, 4, 22>
pub fn retention_clkoff_wait(
&mut self
) -> FieldWriterRaw<'_, u32, RETENTION_CTRL_SPEC, u8, u8, Unsafe, 4, 22>
Bits 22:25 - Retention clkoff wait time
pub fn retention_en(
&mut self
) -> BitWriterRaw<'_, u32, RETENTION_CTRL_SPEC, bool, BitM, 26>
pub fn retention_en(
&mut self
) -> BitWriterRaw<'_, u32, RETENTION_CTRL_SPEC, bool, BitM, 26>
Bit 26 - enable cpu retention when light sleep
pub fn retention_wait(
&mut self
) -> FieldWriterRaw<'_, u32, RETENTION_CTRL_SPEC, u8, u8, Unsafe, 5, 27>
pub fn retention_wait(
&mut self
) -> FieldWriterRaw<'_, u32, RETENTION_CTRL_SPEC, u8, u8, Unsafe, 5, 27>
Bits 27: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.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more