357 #ifndef ti_drivers_I2C__include   358 #define ti_drivers_I2C__include   385 #define I2C_CMD_RESERVED           (32)   399 #define I2C_STATUS_RESERVED        (-32)   414 #define I2C_STATUS_SUCCESS         (0)   422 #define I2C_STATUS_ERROR           (-1)   431 #define I2C_STATUS_UNDEFINEDCMD    (-2)   507     bool transferStatus);
   666 extern void I2C_close(I2C_Handle handle);
   705 extern int_fast16_t 
I2C_control(I2C_Handle handle, uint_fast16_t cmd,
 I2C Parameters. 
Definition: I2C.h:542
size_t readCount
Definition: I2C.h:469
I2C transaction. 
Definition: I2C.h:464
I2C_BitRate_
I2C bitRate. 
Definition: I2C.h:515
void * object
Definition: I2C.h:629
I2C_OpenFxn openFxn
Definition: I2C.h:607
void I2C_Params_init(I2C_Params *params)
Initialize an I2C_Params struct to its defaults. 
void(* I2C_CloseFxn)(I2C_Handle handle)
A function pointer to a driver-specific implementation of I2C_close(). 
Definition: I2C.h:560
void * nextPtr
Definition: I2C.h:474
I2C_TransferMode transferMode
Definition: I2C.h:543
void(* I2C_InitFxn)(I2C_Handle handle)
A function pointer to a driver-specific implementation of I2C_init(). 
Definition: I2C.h:573
struct I2C_Transaction_ I2C_Transaction
I2C transaction. 
struct I2C_Config_ * I2C_Handle
A handle that is returned from an I2C_open() call. 
Definition: I2C.h:451
size_t writeCount
Definition: I2C.h:466
void const  * hwAttrs
Definition: I2C.h:632
int_fast16_t I2C_control(I2C_Handle handle, uint_fast16_t cmd, void *controlArg)
Perform implementation-specific features on a given I2C_Handle. 
I2C_CloseFxn closeFxn
Definition: I2C.h:598
void(* I2C_CancelFxn)(I2C_Handle handle)
A function pointer to a driver-specific implementation of I2C_cancel(). 
Definition: I2C.h:554
struct I2C_Params_ I2C_Params
I2C Parameters. 
void * readBuf
Definition: I2C.h:468
I2C_InitFxn initFxn
Definition: I2C.h:604
I2C_CancelFxn cancelFxn
Definition: I2C.h:595
I2C_TransferMode_
I2C transfer mode. 
Definition: I2C.h:485
enum I2C_TransferMode_ I2C_TransferMode
I2C transfer mode. 
I2C_CallbackFxn transferCallbackFxn
Definition: I2C.h:544
bool(* I2C_TransferFxn)(I2C_Handle handle, I2C_Transaction *transaction)
A function pointer to a driver-specific implementation of I2C_transfer(). 
Definition: I2C.h:585
I2C_Handle I2C_open(uint_least8_t index, I2C_Params *params)
Initialize a given I2C peripheral as identified by an index value. The I2C_Params structure defines t...
The definition of an I2C function table that contains the required set of functions to control a spec...
Definition: I2C.h:593
struct I2C_FxnTable_ I2C_FxnTable
The definition of an I2C function table that contains the required set of functions to control a spec...
enum I2C_BitRate_ I2C_BitRate
I2C bitRate. 
void I2C_close(I2C_Handle handle)
Close an I2C peripheral specified by an I2C_Handle. 
I2C_BitRate bitRate
Definition: I2C.h:545
void * writeBuf
Definition: I2C.h:465
struct I2C_Config_ I2C_Config
I2C global configuration. 
void I2C_cancel(I2C_Handle handle)
Cancel all I2C transfers. 
void * arg
Definition: I2C.h:473
uint_least8_t slaveAddress
Definition: I2C.h:471
I2C global configuration. 
Definition: I2C.h:624
void(* I2C_CallbackFxn)(I2C_Handle handle, I2C_Transaction *transaction, bool transferStatus)
I2C callback function. 
Definition: I2C.h:506
void I2C_init(void)
Initializes the I2C module. 
I2C_FxnTable const  * fxnTablePtr
Definition: I2C.h:626
void * custom
Definition: I2C.h:546
bool I2C_transfer(I2C_Handle handle, I2C_Transaction *transaction)
Perform an I2C transaction with an I2C slave peripheral. 
int_fast16_t(* I2C_ControlFxn)(I2C_Handle handle, uint_fast16_t cmd, void *controlArg)
A function pointer to a driver-specific implementation of I2C_control(). 
Definition: I2C.h:566
I2C_ControlFxn controlFxn
Definition: I2C.h:601
I2C_Handle(* I2C_OpenFxn)(I2C_Handle handle, I2C_Params *params)
A function pointer to a driver-specific implementation of I2C_open(). 
Definition: I2C.h:579
I2C_TransferFxn transferFxn
Definition: I2C.h:610