iLLD_TC27xC
1.0
|
![]() |
The I2c driver provides a default configuration for 8bit wide data transfers in Master mode.
NOTE: Interrupts are disabled during data transfers as long as the driver operates on the I2C hardware FIFO, except for reading 32 bytes or less. This is due to imperfections of the I2c Module.
In the following sections it will be described, how to integrate the driver into the application framework.
Include following header file into your C code:
Declare the I2c handle, the I2c device handle and the data buffer in your C code:
Here the i2c device handle is initialized.
Example for an i2c EEPROM.
It is also possible to poll explicitly for NAK.
By using write operations:
By using read operations: