Struct esp32c3_hal::pac::rtc_cntl::pg_ctrl::W
pub struct W(_);
Expand description
Register PG_CTRL
writer
Implementations
impl W
impl W
pub fn power_glitch_dsense(
&mut self
) -> FieldWriterRaw<'_, u32, PG_CTRL_SPEC, u8, u8, Unsafe, 2, 26>
pub fn power_glitch_dsense(
&mut self
) -> FieldWriterRaw<'_, u32, PG_CTRL_SPEC, u8, u8, Unsafe, 2, 26>
Bits 26:27 - power glitch desense
pub fn power_glitch_force_pd(
&mut self
) -> BitWriterRaw<'_, u32, PG_CTRL_SPEC, bool, BitM, 28>
pub fn power_glitch_force_pd(
&mut self
) -> BitWriterRaw<'_, u32, PG_CTRL_SPEC, bool, BitM, 28>
Bit 28 - force disable power glitch
pub fn power_glitch_force_pu(
&mut self
) -> BitWriterRaw<'_, u32, PG_CTRL_SPEC, bool, BitM, 29>
pub fn power_glitch_force_pu(
&mut self
) -> BitWriterRaw<'_, u32, PG_CTRL_SPEC, bool, BitM, 29>
Bit 29 - force enable power glitch
pub fn power_glitch_efuse_sel(
&mut self
) -> BitWriterRaw<'_, u32, PG_CTRL_SPEC, bool, BitM, 30>
pub fn power_glitch_efuse_sel(
&mut self
) -> BitWriterRaw<'_, u32, PG_CTRL_SPEC, bool, BitM, 30>
Bit 30 - use efuse value control power glitch enable
pub fn power_glitch_en(
&mut self
) -> BitWriterRaw<'_, u32, PG_CTRL_SPEC, bool, BitM, 31>
pub fn power_glitch_en(
&mut self
) -> BitWriterRaw<'_, u32, PG_CTRL_SPEC, bool, BitM, 31>
Bit 31 - enable power glitch
Methods from Deref<Target = W<PG_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<PG_CTRL_SPEC>> for W
impl From<W<PG_CTRL_SPEC>> for W
fn from(writer: W<PG_CTRL_SPEC>) -> W
fn from(writer: W<PG_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