TI中文支持网
TI专业的中文技术问题搜集分享网站

用CC1310的串口接收数据时如何通过超时来判断一帧数据接收完毕?

用CC1310的串口接收数据时如何通过超时来判断一帧数据接收完毕?我看例程uartecho中是确定的字节数来判断接收完成的?如果我想用超时来判断的话应当如何处理?

Viki Shi:

General timeout
A timeout value can only be specified for reads and writes in UART_MODE_BLOCKING. If a timeout occurs during a read when in UART_MODE_BLOCKING, the number of bytes received will be returned and the UART_Object.status will be set to UART_TIMED_OUT. After a read timeout, RX will remain on, but device is allowed to enter standby.

Viki Shi:

参考 dev.ti.com/…/_u_a_r_t_c_c26_x_x_8h.html
dev.ti.com/…/_u_a_r_t_8h.html

赞(0)
未经允许不得转载:TI中文支持网 » 用CC1310的串口接收数据时如何通过超时来判断一帧数据接收完毕?
分享到: 更多 (0)