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: CC1310 UART读取不定长数据

Expert 2280 points
Part Number: CC1310

CC1310 UART_read只能读取定长的数据, 有没有获取不定长数据的API?

或者是否可以使用中断方式读取?

  • 您好,

    可以使用中断,并在收到中断后使用UART_read函数读取数据。通过使用中断的方式,动态处理接收到的数据,不受固定长度的限制。

    暂时没有特定的函数来获取不定长的数据,一般情况是利用回调或中断方式,这是 UART.h API 文档。