Struct esp32c2_hal::pac::rtc_cntl::brown_out::W
pub struct W(_);
Expand description
Register BROWN_OUT
writer
Implementations§
§impl W
impl W
pub fn brown_out_int_wait(
&mut self
) -> FieldWriterRaw<'_, u32, BROWN_OUT_SPEC, u16, u16, Unsafe, 10, 4>
pub fn brown_out_int_wait(
&mut self
) -> FieldWriterRaw<'_, u32, BROWN_OUT_SPEC, u16, u16, Unsafe, 10, 4>
Bits 4:13 - brown out interrupt wait cycles
pub fn brown_out_close_flash_ena(
&mut self
) -> BitWriterRaw<'_, u32, BROWN_OUT_SPEC, bool, BitM, 14>
pub fn brown_out_close_flash_ena(
&mut self
) -> BitWriterRaw<'_, u32, BROWN_OUT_SPEC, bool, BitM, 14>
Bit 14 - enable close flash when brown out happens
pub fn brown_out_pd_rf_ena(
&mut self
) -> BitWriterRaw<'_, u32, BROWN_OUT_SPEC, bool, BitM, 15>
pub fn brown_out_pd_rf_ena(
&mut self
) -> BitWriterRaw<'_, u32, BROWN_OUT_SPEC, bool, BitM, 15>
Bit 15 - enable power down RF when brown out happens
pub fn brown_out_rst_wait(
&mut self
) -> FieldWriterRaw<'_, u32, BROWN_OUT_SPEC, u16, u16, Unsafe, 10, 16>
pub fn brown_out_rst_wait(
&mut self
) -> FieldWriterRaw<'_, u32, BROWN_OUT_SPEC, u16, u16, Unsafe, 10, 16>
Bits 16:25 - brown out reset wait cycles
pub fn brown_out_rst_ena(
&mut self
) -> BitWriterRaw<'_, u32, BROWN_OUT_SPEC, bool, BitM, 26>
pub fn brown_out_rst_ena(
&mut self
) -> BitWriterRaw<'_, u32, BROWN_OUT_SPEC, bool, BitM, 26>
Bit 26 - enable brown out reset
pub fn brown_out_rst_sel(
&mut self
) -> BitWriterRaw<'_, u32, BROWN_OUT_SPEC, bool, BitM, 27>
pub fn brown_out_rst_sel(
&mut self
) -> BitWriterRaw<'_, u32, BROWN_OUT_SPEC, bool, BitM, 27>
Bit 27 - 1: 4-pos reset
pub fn brown_out_ana_rst_en(
&mut self
) -> BitWriterRaw<'_, u32, BROWN_OUT_SPEC, bool, BitM, 28>
pub fn brown_out_ana_rst_en(
&mut self
) -> BitWriterRaw<'_, u32, BROWN_OUT_SPEC, bool, BitM, 28>
Bit 28 - Need add desc
pub fn brown_out_cnt_clr(
&mut self
) -> BitWriterRaw<'_, u32, BROWN_OUT_SPEC, bool, BitM, 29>
pub fn brown_out_cnt_clr(
&mut self
) -> BitWriterRaw<'_, u32, BROWN_OUT_SPEC, bool, BitM, 29>
Bit 29 - clear brown out counter
pub fn brown_out_ena(
&mut self
) -> BitWriterRaw<'_, u32, BROWN_OUT_SPEC, bool, BitM, 30>
pub fn brown_out_ena(
&mut self
) -> BitWriterRaw<'_, u32, BROWN_OUT_SPEC, bool, BitM, 30>
Bit 30 - enable brown out
pub fn det(&mut self) -> BitWriterRaw<'_, u32, BROWN_OUT_SPEC, bool, BitM, 31>
pub fn det(&mut self) -> BitWriterRaw<'_, u32, BROWN_OUT_SPEC, bool, BitM, 31>
Bit 31 - Need add desc
Methods from Deref<Target = W<BROWN_OUT_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<BROWN_OUT_SPEC>> for W
impl From<W<BROWN_OUT_SPEC>> for W
§fn from(writer: W<BROWN_OUT_SPEC>) -> W
fn from(writer: W<BROWN_OUT_SPEC>) -> W
Converts to this type from the input type.