Struct esp32s3_hal::pac::sens::sar_i2c_ctrl::W
pub struct W(_);
Expand description
Register SAR_I2C_CTRL
writer
Implementations§
§impl W
impl W
pub fn sar_i2c_ctrl(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_I2C_CTRL_SPEC, u32, u32, Unsafe, 28, 0>
pub fn sar_i2c_ctrl(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_I2C_CTRL_SPEC, u32, u32, Unsafe, 28, 0>
Bits 0:27 - I2C control data only active when reg_sar_i2c_start_force = 1
pub fn sar_i2c_start(
&mut self
) -> BitWriterRaw<'_, u32, SAR_I2C_CTRL_SPEC, bool, BitM, 28>
pub fn sar_i2c_start(
&mut self
) -> BitWriterRaw<'_, u32, SAR_I2C_CTRL_SPEC, bool, BitM, 28>
Bit 28 - start I2C only active when reg_sar_i2c_start_force = 1
pub fn sar_i2c_start_force(
&mut self
) -> BitWriterRaw<'_, u32, SAR_I2C_CTRL_SPEC, bool, BitM, 29>
pub fn sar_i2c_start_force(
&mut self
) -> BitWriterRaw<'_, u32, SAR_I2C_CTRL_SPEC, bool, BitM, 29>
Bit 29 - 1: I2C started by SW 0: I2C started by FSM
Methods from Deref<Target = W<SAR_I2C_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<SAR_I2C_CTRL_SPEC>> for W
impl From<W<SAR_I2C_CTRL_SPEC>> for W
§fn from(writer: W<SAR_I2C_CTRL_SPEC>) -> W
fn from(writer: W<SAR_I2C_CTRL_SPEC>) -> W
Converts to this type from the input type.