MSPM0L11XX_L13XX TI-Driver Library
2.00.00.03
|
Data Structures | |
struct | I2CTargetMSPM0_HWAttrs |
I2CTargetMSPM0 Hardware attributes. More... | |
struct | I2CTargetMSPM0_Object |
I2CTargetMSPM0 Object. More... | |
Functions | |
static bool | I2CBaseValid (I2C_Regs *i2c) |
Checks an I2C base address. This function determines if a I2C port base address is valid. More... | |
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 MSPM0:
The Power drivers are yet to implement but the behavior should follow like the information given here. The I2CTargetMSPM0 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.
|
static |
Checks an I2C base address. This function determines if a I2C port base address is valid.
i2c | is the base address of the I2C port. |
true
if the base address is valid and false
otherwise