Type Alias esp32s2::i2c0::scl_sp_conf::R

source ·
pub type R = R<SCL_SP_CONF_SPEC>;
Expand description

Register SCL_SP_CONF reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn scl_rst_slv_en(&self) -> SCL_RST_SLV_EN_R

Bit 0 - When I2C master is IDLE, set this bit to send out SCL pulses. The number of pulses equals to I2C_SCL_RST_SLV_NUM[4:0].

source

pub fn scl_rst_slv_num(&self) -> SCL_RST_SLV_NUM_R

Bits 1:5 - Configure the pulses of SCL generated in I2C master mode. Valid when I2C_SCL_RST_SLV_EN is 1.

source

pub fn scl_pd_en(&self) -> SCL_PD_EN_R

Bit 6 - The power down enable bit for the I2C output SCL line. 1: Power down. 0: Not power down. Set I2C_SCL_FORCE_OUT and I2C_SCL_PD_EN to 1 to stretch SCL low.

source

pub fn sda_pd_en(&self) -> SDA_PD_EN_R

Bit 7 - The power down enable bit for the I2C output SDA line. 1: Power down. 0: Not power down. Set I2C_SDA_FORCE_OUT and I2C_SDA_PD_EN to 1 to stretch SDA low.