pub struct I2C1 { /* private fields */ }

Implementations§

Unsafely create an instance of this peripheral out of thin air.

Safety

You must ensure that you’re only using one instance of this type at a time.

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.
Mutably 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
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
Resets the transmit and receive FIFO buffers
Send data bytes from the bytes array to a target slave with the address addr
Read bytes from a target slave with the address addr The number of read bytes is deterimed by the size of the buffer argument
Write bytes from the bytes array first and then read n bytes into the buffer array with n being the size of the array.
Peripheral singleton type
Unsafely clone (duplicate) a peripheral singleton. Read more
Convert a value into a PeripheralRef. Read more
Peripheral singleton type
Unsafely clone (duplicate) a peripheral singleton. Read more
Convert a value into a PeripheralRef. 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.