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

source

pub fn stretch_protect_num(&self) -> STRETCH_PROTECT_NUM_R

Bits 0:9 - Configure the period of I2C slave stretching SCL line.

source

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.

source

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.

source

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.