Type Alias esp32c6::i2c0::scl_stretch_conf::R
source · pub type R = R<SCL_STRETCH_CONF_SPEC>;Expand description
Register SCL_STRETCH_CONF reader
Aliased Type§
struct R { /* private fields */ }Implementations§
source§impl R
impl R
sourcepub fn stretch_protect_num(&self) -> STRETCH_PROTECT_NUM_R
pub fn stretch_protect_num(&self) -> STRETCH_PROTECT_NUM_R
Bits 0:9 - Configure the period of I2C slave stretching SCL line.
sourcepub fn slave_scl_stretch_en(&self) -> SLAVE_SCL_STRETCH_EN_R
pub fn slave_scl_stretch_en(&self) -> SLAVE_SCL_STRETCH_EN_R
Bit 10 - The enable bit for slave SCL stretch function. 1: Enable. 0: Disable. The SCL output line will be stretched low when reg_slave_scl_stretch_en is 1 and stretch event happens. The stretch cause can be seen in reg_stretch_cause.
sourcepub fn slave_byte_ack_ctl_en(&self) -> SLAVE_BYTE_ACK_CTL_EN_R
pub fn slave_byte_ack_ctl_en(&self) -> SLAVE_BYTE_ACK_CTL_EN_R
Bit 12 - The enable bit for slave to control ACK level function.
sourcepub fn slave_byte_ack_lvl(&self) -> SLAVE_BYTE_ACK_LVL_R
pub fn slave_byte_ack_lvl(&self) -> SLAVE_BYTE_ACK_LVL_R
Bit 13 - Set the ACK level when slave controlling ACK level function enables.