[UART] How do I know which byte has a parity error

EeEmDee
Posts: 1
Joined: Tue Nov 15, 2022 10:34 am

[UART] How do I know which byte has a parity error

Postby EeEmDee » Tue Nov 15, 2022 10:41 am

Hello there,

I am using the uart_events example. I was wondering if it is possible to determine which byte in a transmission is triggering the UART_PARITY_ERR?

For example let's say I configure the UART to have odd parity. Now when I receive 3 bytes of data the UART_PARITY_ERR is triggered 2 times. How do I know which of those 3 bytes are faulty?

Hope someone can help,
Greeting :)

Who is online

Users browsing this forum: danpf1 and 154 guests