Functions | |
| bool | i2c_transfer_async (i2c_t *obj, const uint8_t *tx, uint32_t tx_length, uint8_t *rx, uint32_t rx_length, uint16_t address, bool stop, i2c_async_handler_f handler, void *ctx) |
| Start I2C asynchronous transfer. More... | |
| void | i2c_abort_async (i2c_t *obj) |
| Abort asynchronous transfer. More... | |
| void i2c_abort_async | ( | i2c_t * | obj | ) |
Abort asynchronous transfer.
This function does not perform any check - that should happen in upper layers.
| obj | The I2C object |
| bool i2c_transfer_async | ( | i2c_t * | obj, |
| const uint8_t * | tx, | ||
| uint32_t | tx_length, | ||
| uint8_t * | rx, | ||
| uint32_t | rx_length, | ||
| uint16_t | address, | ||
| bool | stop, | ||
| i2c_async_handler_f | handler, | ||
| void * | ctx | ||
| ) |
Start I2C asynchronous transfer.
| obj | The I2C object |
| tx | The transmit buffer |
| tx_length | The number of bytes to transmit |
| rx | The receive buffer |
| rx_length | The number of bytes to receive |
| address | The address to be set - 7 bit or 10 bit |
| stop | If true, stop is generated after the transfer is done |
| handler | The I2C IRQ handler to be set |
| ctx | The context pointer |