|
AM263x MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
136 #define I2C_MODE_BLOCKING ((uint8_t) 0U)
137 #define I2C_MODE_CALLBACK ((uint8_t) 1U)
150 #define I2C_MEM_TXN_DIR_INVALID ((uint8_t) 0U)
152 #define I2C_MEM_TXN_DIR_TX ((uint8_t) 1U)
154 #define I2C_MEM_TXN_DIR_RX ((uint8_t) 2U)
170 typedef struct I2C_HwAttrs_s {
229 typedef struct I2C_Transaction_s {
288 typedef struct I2C_Params_s {
293 int32_t transferStatus);
303 typedef struct I2C_Object_s {
343 typedef struct I2C_Config_s {
367 int32_t transferStatus);
void I2C_Params_init(I2C_Params *params)
API to set default values of I2C_Params in params.
void * arg
Definition: i2c.h:251
uint8_t memAddrSize
Definition: i2c.h:197
uint8_t * buffer
Definition: i2c.h:199
void I2C_Memory_Transaction_init(I2C_Mem_Transaction *memTransaction)
API to set default values of I2C_Mem_Transaction in memTransaction.
uint32_t ownTargetAddr
Definition: i2c.h:182
I2C Object.
Definition: i2c.h:303
int32_t status
Definition: i2c.h:265
I2C Hardware attributes.
Definition: i2c.h:170
I2C_Transaction * tailPtr
Definition: i2c.h:322
I2C LLD Driver API/interface file.
int32_t I2C_probe(I2C_Handle handle, uint32_t targetAddr)
API to probe I2C Device.
void * nextPtr
Definition: i2c.h:249
SemaphoreP_Object transferComplete
Definition: i2c.h:308
I2C Global configuration.
Definition: i2c.h:343
bool isOpen
Definition: i2c.h:324
I2CLLD_Object i2cLldObject
Definition: i2c.h:328
int32_t I2C_memory_transfer(I2C_Handle handle, I2C_Mem_Transaction *transaction)
API to initiate a memory transfer from I2C Instance.
const void * writeBuf
Definition: i2c.h:233
uint16_t eventId
Definition: i2c.h:176
I2CLLD_Handle i2cLldHandle
Definition: i2c.h:329
I2C_Transaction * headPtr
Definition: i2c.h:320
I2C_HwAttrs const * hwAttrs
Definition: i2c.h:347
struct I2C_Config_s * I2C_Handle
A handle that is returned from a I2C_open() call.
Definition: i2c.h:165
uint32_t memAddr
Definition: i2c.h:195
bool enableIntr
Definition: i2c.h:180
int32_t I2C_transfer(I2C_Handle handle, I2C_Transaction *transaction)
API to initiate a transfer from I2C Instance.
uint32_t targetAddress
Definition: i2c.h:247
uint32_t intStatusErr
Definition: i2c.h:326
I2C_Mem_Transaction * memTransaction
Definition: i2c.h:263
I2C Transaction.
Definition: i2c.h:229
I2C Parameters.
Definition: i2c.h:288
I2C_Handle I2C_open(uint32_t idx, const I2C_Params *params)
API to Open I2C at index idx with parameters params.
uint32_t size
Definition: i2c.h:201
SemaphoreP_Object mutex
Definition: i2c.h:306
uint8_t memDataDir
Definition: i2c.h:203
uint32_t timeout
Definition: i2c.h:253
bool expandSA
Definition: i2c.h:258
I2C_Params i2cParams
Definition: i2c.h:312
I2C_Object * object
Definition: i2c.h:345
uint32_t intNum
Definition: i2c.h:174
void I2C_Transaction_init(I2C_Transaction *transaction)
API to set default values of I2C_Transaction in transaction.
bool controllerMode
Definition: i2c.h:255
int32_t I2C_setBusFrequency(I2C_Handle handle, uint32_t busFrequency)
API to set the bus frequency of I2C Instance.
void * readBuf
Definition: i2c.h:239
void I2C_deinit(void)
De-nitialize the I2C module.
Opaque Hwi object used with the Hwi APIs.
Definition: HwiP.h:93
size_t writeCount
Definition: i2c.h:236
void(* I2C_CallbackFxn)(I2C_Handle handle, I2C_Transaction *msg, int32_t transferStatus)
I2C Callback Function.
Definition: i2c.h:366
I2C Memory Transaction.
Definition: i2c.h:193
uint32_t baseAddr
Definition: i2c.h:172
Opaque semaphore object used with the semaphore APIs.
Definition: SemaphoreP.h:59
uint32_t funcClk
Definition: i2c.h:178
bool memTxnEnable
Definition: i2c.h:261
size_t readCount
Definition: i2c.h:242
I2C Driver Object.
Definition: i2c_lld.h:376
void I2C_close(I2C_Handle handle)
API to close the I2C instance specified by the handle passed.
uint8_t state
Definition: i2c.h:314
uint8_t bitRate
Definition: i2c.h:295
I2C_Transaction * currentTransaction
Definition: i2c.h:317
uint8_t transferMode
Definition: i2c.h:290
void I2C_init(void)
Initialize the I2C module.
HwiP_Object hwiObj
Definition: i2c.h:310
I2C_Handle I2C_getHandle(uint32_t index)
API to get the handle of an open I2C instance from the instance index.