请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:CC2652RB 尊敬的 TI:
当我在 Sensor Controller Studio 中编写一些有缺口的内容时、它显示错误、但没有理由、请帮我!

代码如下:

(我还尝试用输出变量替换 U16类型、但错误仍然存在...)
谢谢!
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.
尊敬的 TI:
当我在 Sensor Controller Studio 中编写一些有缺口的内容时、它显示错误、但没有理由、请帮我!

代码如下:

(我还尝试用输出变量替换 U16类型、但错误仍然存在...)
谢谢!
readDatas ()的定义如下:
macro readDatas(addr,buf,len) {
spiBegin(AUXIO_SPI_CSN_INVNCS);
spiTx8bit(addr|0x80);
for (U16 n = 0; n < len; n++) {
spiRx8bit(buf[n]);
}
spiEnd(AUXIO_SPI_CSN_INVNCS);
}