Struct esp32c2_hal::pac::i2c0::ctr::R

pub struct R(_);
Expand description

Register CTR reader

Implementations§

Bit 0 - 0: direct output, 1: open drain output.

Bit 1 - 0: direct output, 1: open drain output.

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.

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.

Bit 4 - Set this bit to configure the module as an I2C Master. Clear this bit to configure the module as an I2C Slave.

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.

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.

Bit 8 - Reserved

Bit 9 - This is the enable bit for arbitration_lost.

Bit 12 - This is the enable bit for slave to send data automatically

Methods from Deref<Target = R<CTR_SPEC>>§

Reads raw bits from register.

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.