118 #ifndef ti_drivers_I2CSLAVE__include 119 #define ti_drivers_I2CSLAVE__include 145 #define I2CSLAVE_CMD_RESERVED (32) 159 #define I2CSLAVE_STATUS_RESERVED (-32) 173 #define I2CSLAVE_STATUS_SUCCESS (0) 181 #define I2CSLAVE_STATUS_ERROR (-1) 190 #define I2CSLAVE_STATUS_UNDEFINEDCMD (-2) 312 const void *buffer,
size_t size);
420 extern int_fast16_t
I2CSlave_control(I2CSlave_Handle handle, uint_fast16_t cmd,
500 extern bool I2CSlave_read(I2CSlave_Handle handle,
void *buffer,
537 extern bool I2CSlave_write(I2CSlave_Handle handle,
const void *buffer,
Definition: I2CSlave.h:222
struct I2CSlave_Config_ * I2CSlave_Handle
A handle that is returned from a I2CSlave_open() call.
Definition: I2CSlave.h:210
struct I2CSlave_Config_ I2CSlave_Config
I2CSlave Global configuration.
enum I2CSlave_Mode_ I2CSlave_Mode
I2CSlave mode.
struct I2CSlave_Params_ I2CSlave_Params
I2CSlave Parameters.
I2CSlave_ReadFxn readFxn
Definition: I2CSlave.h:342
void * object
Definition: I2CSlave.h:364
void I2CSlave_close(I2CSlave_Handle handle)
Function to close a I2CSlave peripheral specified by the I2CSlave handle.
I2CSlave_CallbackFxn transferCallbackFxn
Definition: I2CSlave.h:275
bool I2CSlave_write(I2CSlave_Handle handle, const void *buffer, size_t size)
Function that handles the I2CSlave write for SYS/BIOS.
I2CSlave Global configuration.
Definition: I2CSlave.h:359
I2CSlave Parameters.
Definition: I2CSlave.h:271
Definition: I2CSlave.h:234
void(* I2CSlave_CloseFxn)(I2CSlave_Handle handle)
A function pointer to a driver specific implementation of I2CSlave_close().
Definition: I2CSlave.h:284
I2CSlave_Handle(* I2CSlave_OpenFxn)(I2CSlave_Handle handle, I2CSlave_Params *params)
A function pointer to a driver specific implementation of I2CSlave_open().
Definition: I2CSlave.h:304
Definition: I2CSlave.h:219
I2CSlave_InitFxn initFxn
Definition: I2CSlave.h:336
I2CSlave_ControlFxn controlFxn
Definition: I2CSlave.h:333
I2CSlave_CloseFxn closeFxn
Definition: I2CSlave.h:330
struct I2CSlave_FxnTable_ I2CSlave_FxnTable
The definition of a I2CSlave function table that contains the required set of functions to control a ...
I2CSlave_TransferMode_
I2CSlave transfer mode.
Definition: I2CSlave.h:233
Definition: I2CSlave.h:235
Definition: I2CSlave.h:223
void const * hwAttrs
Definition: I2CSlave.h:367
int_fast16_t I2CSlave_control(I2CSlave_Handle handle, uint_fast16_t cmd, void *arg)
Function performs implementation specific features on a given I2CSlave_Handle.
Definition: I2CSlave.h:220
bool I2CSlave_read(I2CSlave_Handle handle, void *buffer, size_t size)
Function that handles the I2CSlave read for SYS/BIOS.
I2CSlave_OpenFxn openFxn
Definition: I2CSlave.h:339
I2CSlave_WriteFxn writeFxn
Definition: I2CSlave.h:345
bool(* I2CSlave_ReadFxn)(I2CSlave_Handle handle, void *buffer, size_t size)
A function pointer to a driver specific implementation of I2CSlave_ReadFxn().
Definition: I2CSlave.h:319
void * custom
Definition: I2CSlave.h:277
void(* I2CSlave_CallbackFxn)(I2CSlave_Handle handle, bool status)
I2CSlave callback function.
Definition: I2CSlave.h:250
bool(* I2CSlave_WriteFxn)(I2CSlave_Handle handle, const void *buffer, size_t size)
A function pointer to a driver specific implementation of I2CSlave_WriteTransaction().
Definition: I2CSlave.h:311
enum I2CSlave_TransferMode_ I2CSlave_TransferMode
I2CSlave transfer mode.
I2CSlave_TransferMode transferMode
Definition: I2CSlave.h:273
int_fast16_t(* I2CSlave_ControlFxn)(I2CSlave_Handle handle, uint_fast16_t cmd, void *arg)
A function pointer to a driver specific implementation of I2CSlave_control().
Definition: I2CSlave.h:290
Definition: I2CSlave.h:221
I2CSlave_FxnTable const * fxnTablePtr
Definition: I2CSlave.h:361
I2CSlave_Mode_
I2CSlave mode.
Definition: I2CSlave.h:218
void I2CSlave_Params_init(I2CSlave_Params *params)
Function to initialize the I2CSlave_Params struct to its defaults.
The definition of a I2CSlave function table that contains the required set of functions to control a ...
Definition: I2CSlave.h:328
void I2CSlave_init(void)
Function to initializes the I2CSlave module.
I2CSlave_Handle I2CSlave_open(uint_least8_t index, I2CSlave_Params *params)
Function to initialize a given I2CSlave peripheral specified by the particular index value...
void(* I2CSlave_InitFxn)(I2CSlave_Handle handle)
A function pointer to a driver specific implementation of I2CSlave_init().
Definition: I2CSlave.h:298