This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

I2C CSL 函数库 函数 调用



/* device handle object */

typedef struct {

 Uint32 allocated;

 Uint32 eventId;

 volatile Uint32 *baseAddr;

 Uint32 i2cdrrAddr;

 Uint32 i2cdxrAddr;

} I2C_Obj, *I2C_Handle;

IDEF void I2C_writeByte(I2C_Handle hI2c, Uint8 val) {

 (*(volatile Uint8 *)(hI2c->i2cdxrAddr)) = val;

}

请问Uint32 i2cdxrAddr代表什么?

如果这样调用,

I2C_writeByte(hI2c, 0x55);

那么0x55写到I2C的那个寄存器了?