![]() |
MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
The MCUXpresso SDK provides a peripheral driver for the Inter-Integrated Circuit (I2C) module of MCUXpresso SDK devices.
The I2C driver includes functional APIs and transactional APIs.
Functional APIs are feature/property target low-level APIs. Functional APIs can be used for the I2C master/slave initialization/configuration/operation for optimization/customization purpose. Using the functional APIs requires the knowledge of the I2C master/slave peripheral and how to organize functional APIs to meet the application requirements. The I2C functional operation groups provide the functional APIs set.
Transactional APIs are transaction target high-level APIs. The transactional APIs can be used to enable the peripheral quickly and also in the application if the code size and performance of transactional APIs satisfy the requirements. If the code size and performance are critical requirements, see the transactional API implementation and write custom code using the functional APIs or accessing the hardware registers.
Transactional APIs support asynchronous transfer. This means that the functions I2C_MasterTransferNonBlocking() set up the interrupt non-blocking transfer. When the transfer completes, the upper layer is notified through a callback function with the status.
Refer to the driver examples codes located at <SDK_ROOT>/boards/<BOARD>/driver_examples/i2c
Refer to the driver examples codes located at <SDK_ROOT>/boards/<BOARD>/driver_examples/i2c
Refer to the driver examples codes located at <SDK_ROOT>/boards/<BOARD>/driver_examples/i2c
Refer to the driver examples codes located at <SDK_ROOT>/boards/<BOARD>/driver_examples/i2c
Modules | |
I2C Driver | |
I2C Master Driver | |
I2C Slave Driver | |