Struct esp32s3_hal::pac::rtc_i2c::ctrl::W
pub struct W(_);
Expand description
Register CTRL
writer
Implementations§
§impl W
impl W
pub fn sda_force_out(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 0>
pub fn sda_force_out(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 0>
Bit 0 - 1=push pull,0=open drain
pub fn scl_force_out(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 1>
pub fn scl_force_out(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 1>
Bit 1 - 1=push pull,0=open drain
pub fn ms_mode(&mut self) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 2>
pub fn ms_mode(&mut self) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 2>
Bit 2 - 1=master,0=slave
pub fn trans_start(&mut self) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 3>
pub fn trans_start(&mut self) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 3>
Bit 3 - force start
pub fn tx_lsb_first(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 4>
pub fn tx_lsb_first(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 4>
Bit 4 - transit lsb first
pub fn rx_lsb_first(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 5>
pub fn rx_lsb_first(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 5>
Bit 5 - receive lsb first
pub fn i2c_ctrl_clk_gate_en(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 29>
pub fn i2c_ctrl_clk_gate_en(
&mut self
) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 29>
Bit 29 - configure i2c ctrl clk enable
pub fn i2c_reset(&mut self) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 30>
pub fn i2c_reset(&mut self) -> BitWriterRaw<'_, u32, CTRL_SPEC, bool, BitM, 30>
Bit 30 - rtc i2c sw reset
Methods from Deref<Target = W<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.