pub type W = W<CTR_SPEC>;Expand description
Register CTR writer
Aliased Type§
struct W { /* private fields */ }Implementations§
Source§impl W
impl W
Sourcepub fn sda_force_out(&mut self) -> SDA_FORCE_OUT_W<'_, CTR_SPEC>
pub fn sda_force_out(&mut self) -> SDA_FORCE_OUT_W<'_, CTR_SPEC>
Bit 0 - 1: normally ouput sda data 0: exchange the function of sda_o and sda_oe (sda_o is the original internal output sda signal sda_oe is the enable bit for the internal output sda signal)
Sourcepub fn scl_force_out(&mut self) -> SCL_FORCE_OUT_W<'_, CTR_SPEC>
pub fn scl_force_out(&mut self) -> SCL_FORCE_OUT_W<'_, CTR_SPEC>
Bit 1 - 1: normally ouput scl clock 0: exchange the function of scl_o and scl_oe (scl_o is the original internal output scl signal scl_oe is the enable bit for the internal output scl signal)
Sourcepub fn sample_scl_level(&mut self) -> SAMPLE_SCL_LEVEL_W<'_, CTR_SPEC>
pub fn sample_scl_level(&mut self) -> SAMPLE_SCL_LEVEL_W<'_, CTR_SPEC>
Bit 2 - Set this bit to sample data in SCL low level. clear this bit to sample data in SCL high level.
Sourcepub fn ms_mode(&mut self) -> MS_MODE_W<'_, CTR_SPEC>
pub fn ms_mode(&mut self) -> MS_MODE_W<'_, CTR_SPEC>
Bit 4 - Set this bit to configure the module as i2c master clear this bit to configure the module as i2c slave.
Sourcepub fn trans_start(&mut self) -> TRANS_START_W<'_, CTR_SPEC>
pub fn trans_start(&mut self) -> TRANS_START_W<'_, CTR_SPEC>
Bit 5 - Set this bit to start sending data in txfifo.
Sourcepub fn tx_lsb_first(&mut self) -> TX_LSB_FIRST_W<'_, CTR_SPEC>
pub fn tx_lsb_first(&mut self) -> TX_LSB_FIRST_W<'_, CTR_SPEC>
Bit 6 - This bit is used to control the sending mode for data need to be send. 1: receive data from most significant bit 0: receive data from least significant bit
Sourcepub fn rx_lsb_first(&mut self) -> RX_LSB_FIRST_W<'_, CTR_SPEC>
pub fn rx_lsb_first(&mut self) -> RX_LSB_FIRST_W<'_, CTR_SPEC>
Bit 7 - This bit is used to control the storage mode for received datas. 1: receive data from most significant bit 0: receive data from least significant bit