Struct esp32c2_hal::pac::i2c0::ctr::R
pub struct R(_);
Expand description
Register CTR
reader
Implementations§
§impl R
impl R
pub fn sda_force_out(&self) -> BitReaderRaw<bool>
pub fn sda_force_out(&self) -> BitReaderRaw<bool>
Bit 0 - 0: direct output, 1: open drain output.
pub fn scl_force_out(&self) -> BitReaderRaw<bool>
pub fn scl_force_out(&self) -> BitReaderRaw<bool>
Bit 1 - 0: direct output, 1: open drain output.
pub fn sample_scl_level(&self) -> BitReaderRaw<bool>
pub fn sample_scl_level(&self) -> BitReaderRaw<bool>
Bit 2 - This register is used to select the sample mode. 1: sample SDA data on the SCL low level. 0: sample SDA data on the SCL high level.
pub fn rx_full_ack_level(&self) -> BitReaderRaw<bool>
pub fn rx_full_ack_level(&self) -> BitReaderRaw<bool>
Bit 3 - This register is used to configure the ACK value that need to sent by master when the rx_fifo_cnt has reached the threshold.
pub fn ms_mode(&self) -> BitReaderRaw<bool>
pub fn ms_mode(&self) -> BitReaderRaw<bool>
Bit 4 - Set this bit to configure the module as an I2C Master. Clear this bit to configure the module as an I2C Slave.
pub fn tx_lsb_first(&self) -> BitReaderRaw<bool>
pub fn tx_lsb_first(&self) -> BitReaderRaw<bool>
Bit 6 - This bit is used to control the sending mode for data needing to be sent. 1: send data from the least significant bit, 0: send data from the most significant bit.
pub fn rx_lsb_first(&self) -> BitReaderRaw<bool>
pub fn rx_lsb_first(&self) -> BitReaderRaw<bool>
Bit 7 - This bit is used to control the storage mode for received data. 1: receive data from the least significant bit, 0: receive data from the most significant bit.
pub fn arbitration_en(&self) -> BitReaderRaw<bool>
pub fn arbitration_en(&self) -> BitReaderRaw<bool>
Bit 9 - This is the enable bit for arbitration_lost.
pub fn slv_tx_auto_start_en(&self) -> BitReaderRaw<bool>
pub fn slv_tx_auto_start_en(&self) -> BitReaderRaw<bool>
Bit 12 - This is the enable bit for slave to send data automatically
Methods from Deref<Target = R<CTR_SPEC>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.