Hi,
I want to use UART callback mode of TivaC 1294. The description on its user manual is difficult to understand to me:
• UART_MODE_CALLBACK is non-blocking and will return while data is being sent in the context of a Hwi. The UART driver will call the callback function whenever a write or read finishes. In some cases, the action might have been canceled or received a newline, so the number of bytes sent/received are passed in. Your implementation of the callback function can use this information as needed.
I need some detail explanation of the following lines:
In some cases, the action might have been canceled or received a newline, so the number of bytes
sent/received are passed in. Your implementation of the callback function can use this information
as needed.
First, the question is about the number of bytes ... are passed in. What is it?
Then, how the callback function uses that information?
Thanks,