UART receive break detect

drmacro
Posts: 26
Joined: Tue Dec 25, 2018 8:25 pm

UART receive break detect

Postby drmacro » Thu Dec 19, 2019 8:11 pm

I have looked at the .h for the uart. It has a typedef for uart event types. One type is UART_BREAK.

The .h file goes on to declare the write function with break, but no mention of reading.

I have code that reads based on the break. (I didn't write it...)
The data stream is 513 bytes after the break.

But, I only get the first 480 bytes.

I think this is because the code flushes when it receives a new break.

What determines how the driver sees the break? is it possible to tell how long the break is and how many bytes to receive before looking for a break?

I haven't found much about the receive process. Happy to look if there is stuff I've missed, just point me to it.

Who is online

Users browsing this forum: Bing [Bot] and 110 guests