Struct esp32s3::i2c0::ctr::W

source ·
pub struct W(_);
Expand description

Register CTR writer

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 5 - Set this bit to start sending the data in txfifo.

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 10 - This register is used to reset the scl FMS.

Bit 11 - synchronization bit

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

Bit 13 - This is the enable bit to check if the r/w bit of 10bit addressing consists with I2C protocol

Bit 14 - This is the enable bit to support the 7bit general call function.

Writes raw bits to the register.

Methods from Deref<Target = W<CTR_SPEC>>

Writes raw bits to the register.

Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations

The resulting type after dereferencing.
Dereferences the value.
Mutably 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.