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.

AWR1642: How to use I2C driver to program PMIC LP87524

Part Number: AWR1642
Other Parts Discussed in Thread: MMWAVE-SDK

Hi,

I'm using I2C driver to program PMIC LP87524.

I choose master mode to config PMIC but i don't understand this sector.

/* Test combined write and read */

txData[0] = 0x4;
i2cTransaction.slaveAddress = 0x48;
i2cTransaction.writeBuf = txData;
i2cTransaction.writeCount = 1;
i2cTransaction.readBuf = rxData;
i2cTransaction.readCount = 1;

/* Writing to slave and read what was sent by slave as well */
retVal = I2C_transfer(i2cHandle, &i2cTransaction);

In my undestanding, slaveAddress is device address. For example, it should be 0X60 in LP87524. 

it seem I2C_transfer function can't read/write the register value in LP87524.

My question is how to use I2C_transfer function to read/write register value in address 0x02? 

Thanks for your help.

Regards,

Wesley