Use of UART HAL Drivers
Hello,
I'm designing an application where a PCB with STM32F031C6 has to receive a minimum of 5 bytes via an half-duplex communication. Transmission is delimited by special character, ASCII is used. Ideally, the transmission would be composed by 3 data bytes and 2 delimiters (minimum).
I don't properly understand if the HAL_UART_Receive_IT function suits my interest (i see it works with n° of bytes) and, more importantly, how the HAL_UART_Error_Callback is triggered.
I don't understand the so-called "half transfer" callbacks too.
The documentation is not helping me, i already read some PDFs...
Anyone who understood enough to explain it to me?
Thank you in advance,
Mirco
