Tool/software: TI-RTOS
HI
I.m trying to get MPU6500 connect to cc2640r2-LAUNCHXL using SCS
this is the help doc about i2cTx:
//////////////////////////////////////////////////////
i2cTx
Prototype: i2cTx(txValue)
Transmits a single byte over I2C. The received acknowledgment value is stored in state.i2cStatus.
Parameter value(s)
- txValue - The value to be transmitted
////////////////////////////////////////////////////
And these is a example:
//////////////////////////////////////////////////
Accelerometer Polling
// Accelerometer (I2C address 0x86+W): Write X register address (0x04)
i2cStart();
i2cTx(0x86 | I2C_OP_WRITE);
i2cTx(0x04);
// If successful ...
if (state.i2cStatus == 0x0000) {
// Accelerometer (I2C address 0x86+R): Read X/Y/Z register values
i2cRepeatedStart();
i2cTx(0x86 | I2C_OP_READ);
i2cRxAck(output.x);
i2cRxAck(output.y);
i2cRxNack(output.z);
}
i2cStop();
// Handle errors, if any ...
if (state.i2cStatus != 0x0000) {
... Handle errors ...
}
//////////////////////////////////////////////////////////////
so how to locate I2c address and register address by using i2cTx to read and write from sensor?
I can not find useful example for my project.