This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to use APP_UART_DATA_READY?

I found and implemented an example that gives me a decent idea of how to go about polling for data with the UART/FIFO. However this doesn't give any indication of how to use the APP_UART_DATA_READY event, and the documentation isn't very in depth nor are there any posts I can find on here about it's usage.

Will this event occur for every single character that is received? Or does it fill the whole buffer before it is called?

In either situation how would I read a constant stream of data into a buffer making use this event? I have a situation where a UART device may or may not be attached, so ideally I don't want to be polling and constantly generating UART communication error events if there's no data to receive.

Parents Reply Children
No Data
Related