![]() |
![]() |
|
MSPM0L111X TI-Driver Library
2.05.00.05
|
I2CTarget driver interface.

Go to the source code of this file.
Data Structures | |
| struct | I2CTarget_Params |
| I2CTarget Parameters. More... | |
| struct | I2CTarget_Config_ |
| I2CTarget Global configuration. More... | |
Macros | |
| #define | I2CTarget_STATUS_SUCCESS (0) |
| Successful status code returned by application event callback function. More... | |
| #define | I2CTarget_STATUS_ERROR (-1) |
| Generic error status code returned by application event callback function. More... | |
| #define | I2C_TARGET_OWN_ADDRESS (0x48) |
| Default own address of the I2C Target. | |
Typedefs | |
| typedef struct I2CTarget_Config_ * | I2CTarget_Handle |
| A handle that is returned from a I2CTarget_open() call. | |
| typedef int_fast16_t(* | I2CTarget_EventCallbackFxn) (I2CTarget_Handle handle, I2CTarget_Event event, uint8_t *val) |
| I2CTarget event callback function. More... | |
| typedef struct I2CTarget_Config_ | I2CTarget_Config |
| I2CTarget Global configuration. More... | |
Enumerations | |
| enum | I2CTarget_Event { I2CTarget_Event_WRITE_REQUESTED, I2CTarget_Event_READ_REQUESTED, I2CTarget_Event_WRITE_RECEIVED, I2CTarget_Event_READ_PROCESSED, I2CTarget_Event_STOP } |
| I2CTarget events that the application's I2CTarget_EventCallbackFxn must support. More... | |
Functions | |
| void | I2CTarget_init (void) |
| Function to initializes the I2CTarget module. More... | |
| void | I2CTarget_Params_init (I2CTarget_Params *params) |
| Function to initialize the I2CTarget_Params struct to its defaults. More... | |
| I2CTarget_Handle | I2CTarget_open (uint_least8_t index, I2CTarget_Params *params) |
| Function to initialize a given I2C target peripheral specified by the particular index value. The parameter specifies which mode the I2CTarget will operate. More... | |
| void | I2CTarget_start (I2CTarget_Handle handle) |
| Start I2CTarget driver listening on I2C bus. More... | |
| void | I2CTarget_stop (I2CTarget_Handle handle) |
| Stop I2CTarget driver from listening on I2C bus. More... | |
| void | I2CTarget_close (I2CTarget_Handle handle) |
Variables | |
| const I2CTarget_Config | I2CTarget_config [] |
| const uint_least8_t | I2CTarget_count |