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.

關於CC1310 I2C問題

 HI 

下面是I2C 初始化 與發送資料的程式,與波形 發現只會傳送address 與 1 個   BYTES就停在I2C_transfer,是否有大大可幫忙,謝謝

I2C_Handle i2c;
I2C_Params i2cParams;

#define slaveAddr 0x18

 I2C_init();

/* Create I2C for usage */
I2C_Params_init(&i2cParams);
i2cParams.bitRate = I2C_400kHz;
i2c = I2C_open(Board_I2C_TMP, &i2cParams);
if (i2c == NULL) {
Display_printf(display, 0, 0, "Error Initializing I2C\n");
while (1);
}
else {
Display_printf(display, 0, 0, "I2C Initialized!\n");
}

uint8_t txBuffer[1];

I2C_Transaction masterTransaction;
txBuffer[0] = 0x20;
txBuffer[1] = 0x05;
masterTransaction.writeCount = 2;
masterTransaction.writeBuf = txBuffer;
masterTransaction.readCount = 0;
masterTransaction.readBuf = NULL;
masterTransaction.slaveAddress = slaveAddr;

if(I2C_transfer(i2c, &masterTransaction))
{


}