Content originally posted in LPCWare by capiman on Thu Jan 08 13:26:23 MST 2015
xfer.slaveAddr = 4; //Slave address 4
xfer.txSz = 10;//10 bytes to send
xfer.[color=#f30]txBuff[/color] = buffer[0];
xfer.rxSz = 0;//0 bytes to send
xfer.[color=#f30]txBuff[/color] = 0;//Flush del buffer
tmp = Chip_I2C_MasterSend(i2cDev, xfer.slaveAddr, xfer.txBuff, xfer.txSz);
Is it correct that you use both times txBuff?
Can you print the 10 bytes in hex?