Struct esp32c2_hal::pac::I2C0

pub struct I2C0 { /* private fields */ }
Expand description

I2C (Inter-Integrated Circuit) Controller

Implementations

Pointer to the register block

Return the pointer to the register block

Trait Implementations

Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.
Resets the I2C controller (FIFO + FSM + command list)
Resets the I2C peripheral’s command registers
Sets the filter with a supplied threshold in clock cycles for which a pulse must be present to pass the filter Read more
Sets the frequency of the I2C interface by calculating and applying the associated timings - corresponds to i2c_ll_cal_bus_clk and i2c_ll_set_bus_timing in ESP-IDF Read more
Resets the transmit and receive FIFO buffers
Send data bytes from the bytes array to a target slave with the address addr Read more
Read bytes from a target slave with the address addr The number of read bytes is deterimed by the size of the buffer argument Read more
Write bytes from the bytes array first and then read n bytes into the buffer array with n being the size of the array. Read more

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.