263 #ifndef ti_drivers_I2CTARGET__include 264 #define ti_drivers_I2CTARGET__include 273 #include <ti/drivers/dpl/HwiP.h> 274 #include <ti/drivers/dpl/SemaphoreP.h> 275 #include <ti/driverlib/dl_i2c.h> 289 #define I2CTarget_STATUS_SUCCESS (0) 296 #define I2CTarget_STATUS_ERROR (-1) 302 #define I2C_TARGET_OWN_ADDRESS (0x48) 355 I2CTarget_State_STOPPED,
356 I2CTarget_State_IDLE,
357 I2CTarget_State_RECEIVE,
358 I2CTarget_State_TRANSMIT
397 #define I2CTARGET_BASE_OBJECT \ 399 I2CTarget_EventCallbackFxn eventCallbackFxn; \ 400 uint_least16_t targetAddress; \ 401 I2CTarget_State currentState; \ 405 SemaphoreP_Struct mutex; \ 417 I2CTARGET_BASE_OBJECT
422 #define I2CTARGET_BASE_HWATTRS \ 440 uint32_t intPriority; \ 450 I2CTARGET_BASE_HWATTRS
void I2CTarget_Params_init(I2CTarget_Params *params)
Function to initialize the I2CTarget_Params struct to its defaults.
int_fast16_t(* I2CTarget_EventCallbackFxn)(I2CTarget_Handle handle, I2CTarget_Event event, uint8_t *val)
I2CTarget event callback function.
Definition: I2CTarget.h:376
const uint_least8_t I2CTarget_count
struct I2CTarget_Config_ I2CTarget_Config
I2CTarget Global configuration.
void I2CTarget_init(void)
Function to initializes the I2CTarget module.
void I2CTarget_stop(I2CTarget_Handle handle)
Stop I2CTarget driver from listening on I2C bus.
Definition: I2CTarget.h:341
I2CTarget_Event
I2CTarget events that the application's I2CTarget_EventCallbackFxn must support.
Definition: I2CTarget.h:313
Definition: I2CTarget.h:332
I2CTarget_EventCallbackFxn eventCallbackFxn
Definition: I2CTarget.h:389
void * custom
Definition: I2CTarget.h:393
I2CTarget Global configuration.
Definition: I2CTarget.h:465
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...
Definition: I2CTarget.h:319
void I2CTarget_start(I2CTarget_Handle handle)
Start I2CTarget driver listening on I2C bus.
const I2CTarget_Config I2CTarget_config[]
I2CTarget Parameters.
Definition: I2CTarget.h:386
void * object
Definition: I2CTarget.h:468
uint_least16_t targetAddress
Definition: I2CTarget.h:391
struct I2CTarget_Config_ * I2CTarget_Handle
A handle that is returned from a I2CTarget_open() call.
Definition: I2CTarget.h:307
void const * hwAttrs
Definition: I2CTarget.h:471
Definition: I2CTarget.h:346
void I2CTarget_close(I2CTarget_Handle handle)
Definition: I2CTarget.h:325