Struct esp32c2_hal::pac::i2c0::scl_sp_conf::W
pub struct W(_);
Expand description
Register SCL_SP_CONF
writer
Implementations§
§impl W
impl W
pub fn scl_rst_slv_en(
&mut self
) -> BitWriterRaw<'_, u32, SCL_SP_CONF_SPEC, bool, BitM, 0>
pub fn scl_rst_slv_en(
&mut self
) -> BitWriterRaw<'_, u32, SCL_SP_CONF_SPEC, bool, BitM, 0>
Bit 0 - When I2C master is IDLE, set this bit to send out SCL pulses. The number of pulses equals to reg_scl_rst_slv_num[4:0].
pub fn scl_rst_slv_num(
&mut self
) -> FieldWriterRaw<'_, u32, SCL_SP_CONF_SPEC, u8, u8, Unsafe, 5, 1>
pub fn scl_rst_slv_num(
&mut self
) -> FieldWriterRaw<'_, u32, SCL_SP_CONF_SPEC, u8, u8, Unsafe, 5, 1>
Bits 1:5 - Configure the pulses of SCL generated in I2C master mode. Valid when reg_scl_rst_slv_en is 1.
pub fn scl_pd_en(
&mut self
) -> BitWriterRaw<'_, u32, SCL_SP_CONF_SPEC, bool, BitM, 6>
pub fn scl_pd_en(
&mut self
) -> BitWriterRaw<'_, u32, SCL_SP_CONF_SPEC, bool, BitM, 6>
Bit 6 - The power down enable bit for the I2C output SCL line. 1: Power down. 0: Not power down. Set reg_scl_force_out and reg_scl_pd_en to 1 to stretch SCL low.
pub fn sda_pd_en(
&mut self
) -> BitWriterRaw<'_, u32, SCL_SP_CONF_SPEC, bool, BitM, 7>
pub fn sda_pd_en(
&mut self
) -> BitWriterRaw<'_, u32, SCL_SP_CONF_SPEC, bool, BitM, 7>
Bit 7 - The power down enable bit for the I2C output SDA line. 1: Power down. 0: Not power down. Set reg_sda_force_out and reg_sda_pd_en to 1 to stretch SDA low.
Methods from Deref<Target = W<SCL_SP_CONF_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<SCL_SP_CONF_SPEC>> for W
impl From<W<SCL_SP_CONF_SPEC>> for W
§fn from(writer: W<SCL_SP_CONF_SPEC>) -> W
fn from(writer: W<SCL_SP_CONF_SPEC>) -> W
Converts to this type from the input type.