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.

无法spi读

Other Parts Discussed in Thread: CC2640

环境CC2640  blestack5, IAR

char wb[2];
wb[0] = 0x0B;
wb[1] = addr;
char rb[2];
masterTransaction.count = 2;
masterTransaction.txBuf = wb;
masterTransaction.arg = NULL;
masterTransaction.rxBuf = rb;

bool r = SPI_transfer(s_spiHandle, &masterTransaction);

示波器看到发了2个字节数据出去,然后就没有clk了,收不到应答。

问题:SPI_transfer是怎么知道应该收多少数据?