I2CTarget driver implementation for a Low Power F3 device I2C target.
The I2CTarget header file should be included in an application as follows:
Refer to I2CTarget.h for a complete description of APIs.
The generic I2CTarget API is normally used in application code, for example, I2CTarget_open(). Do not use APIs in this header file directly. The board file will define the device specific config, and casting in the general API will ensure that the correct device specific functions are called.
Before using the I2C in LPF3:
The I2CTargetLPF3 driver sets a power constraint when I2CTarget_start() is called to keep the device out of standby; so when all tasks are blocked, the device will enter idle mode instead of standby. When the application calls I2CTarget_stop(), the the power constraint to prohibit standby is released. The following statements are valid:
See generic API for examples.
#include <stdint.h>
#include <stdbool.h>
#include <ti/drivers/I2CTarget.h>
#include <ti/drivers/Power.h>
Go to the source code of this file.
Data Structures | |
struct | I2CTargetLPF3_HWAttrs |
I2CTargetLPF3 Hardware attributes. More... | |
struct | I2CTargetLPF3_Object |
I2CTargetLPF3 Object. More... | |