Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: target-freescale
Asynchronous I2C Hardware Abstraction Layer
Functions | |
| void | i2c_transfer_asynch (i2c_t *obj, const void *tx, size_t tx_length, void *rx, size_t rx_length, uint32_t address, uint32_t stop, uint32_t handler, uint32_t event, DMAUsage hint) |
| Start i2c asynchronous transfer. | |
| uint32_t | i2c_irq_handler_asynch (i2c_t *obj) |
| The asynchronous IRQ handler. | |
| uint8_t | i2c_active (i2c_t *obj) |
| Attempts to determine if I2C peripheral is already in use. | |
| void | i2c_abort_asynch (i2c_t *obj) |
| Abort ongoing asynchronous transaction. | |
Function Documentation
| void i2c_abort_asynch | ( | i2c_t * | obj ) |
Abort ongoing asynchronous transaction.
- Parameters:
-
obj The I2C object
| uint8_t i2c_active | ( | i2c_t * | obj ) |
Attempts to determine if I2C peripheral is already in use.
- Parameters:
-
obj The I2C object
- Returns:
- non-zero if the I2C module is active or zero if it is not
| uint32_t i2c_irq_handler_asynch | ( | i2c_t * | obj ) |
The asynchronous IRQ handler.
- Parameters:
-
obj The I2C object which holds the transfer information
- Returns:
- event flags if a transfer termination condition was met or 0 otherwise.
| void i2c_transfer_asynch | ( | i2c_t * | obj, |
| const void * | tx, | ||
| size_t | tx_length, | ||
| void * | rx, | ||
| size_t | rx_length, | ||
| uint32_t | address, | ||
| uint32_t | stop, | ||
| uint32_t | handler, | ||
| uint32_t | event, | ||
| DMAUsage | hint | ||
| ) |
Start i2c asynchronous transfer.
- Parameters:
-
obj The I2C object tx The buffer to send tx_length The number of words to transmit rx The buffer to receive rx_length The number of words to receive address The address to be set - 7bit or 9 bit stop If true, stop will be generated after the transfer is done handler The I2C IRQ handler to be set hint DMA hint usage
Generated on Sat Aug 6 2022 08:19:56 by
1.7.2