I'm using the K64F, MCUXpresso SDK and FreeRTOS.
I'm receiving variable length messages from another device on a UART, these messages are made up of UART frames (8 bits, 1 stop bit). Each message may be made up of 3 - 50 UART frames.
In each message, the UART frames are basically contiguous and there is a significant idle delay (20ms) between all messages.
I'm wondering if there is a hardware level feature / interrupt or SDK API which allows me to easily detect a single message / the end of a message (or when there are no UART frames being received i.e. idle)?
I can then return an array of bytes which represents that message only.
There is no way to determine the end of the message by it's last byte as it is essentially random in nature.