255 #ifndef ti_drivers_I2CTARGET__include 256 #define ti_drivers_I2CTARGET__include 274 #define I2CTarget_STATUS_SUCCESS (0) 281 #define I2CTarget_STATUS_ERROR (-1) 335 I2CTarget_State_STOPPED,
336 I2CTarget_State_IDLE,
337 I2CTarget_State_RECEIVE,
338 I2CTarget_State_TRANSMIT
377 #define I2CTARGET_BASE_OBJECT \ 379 I2CTarget_EventCallbackFxn eventCallbackFxn; \ 380 uint_least16_t targetAddress; \ 381 I2CTarget_State currentState; \ 385 SemaphoreP_Struct mutex; \ 397 I2CTARGET_BASE_OBJECT
402 #define I2CTARGET_BASE_HWATTRS \ 408 uint32_t intPriority; 417 I2CTARGET_BASE_HWATTRS
Definition: I2CTarget.h:312
ADC_Params params
Definition: Driver_Init.h:11
Definition: I2CTarget.h:321
void I2CTarget_Params_init(I2CTarget_Params *params)
Function to initialize the I2CTarget_Params struct to its defaults.
void I2CTarget_stop(I2CTarget_Handle handle)
Stop I2CTarget driver from listening on I2C bus.
Definition: I2CTarget.h:305
Definition: I2CTarget.h:326
void I2CTarget_start(I2CTarget_Handle handle)
Start I2CTarget driver listening on I2C bus.
void I2CTarget_close(I2CTarget_Handle handle)
I2CTarget_EventCallbackFxn eventCallbackFxn
Definition: I2CTarget.h:369
void * custom
Definition: I2CTarget.h:373
I2CTarget Global configuration.
Definition: I2CTarget.h:432
Semaphore module for the RTOS Porting Interface.
struct I2CTarget_Config_ * I2CTarget_Handle
A handle that is returned from a I2CTarget_open() call.
Definition: I2CTarget.h:287
I2CTarget_Event
I2CTarget events that the application's I2CTarget_EventCallbackFxn must support.
Definition: I2CTarget.h:293
int_fast16_t(* I2CTarget_EventCallbackFxn)(I2CTarget_Handle handle, I2CTarget_Event event, uint8_t *val)
I2CTarget event callback function.
Definition: I2CTarget.h:356
const uint_least8_t I2CTarget_count
const I2CTarget_Config I2CTarget_config[]
I2CTarget Parameters.
Definition: I2CTarget.h:366
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...
struct I2CTarget_Config_ I2CTarget_Config
I2CTarget Global configuration.
void * object
Definition: I2CTarget.h:435
uint_least16_t targetAddress
Definition: I2CTarget.h:371
void const * hwAttrs
Definition: I2CTarget.h:438
void I2CTarget_init(void)
Function to initializes the I2CTarget module.
Hardware Interrupt module for the RTOS Porting Interface.
Definition: I2CTarget.h:299