I'm looking in the documentation for a function that returns the free elements in the LPUART TX fifo.
So I know how many data element to write in the interrupt function.
Can you please tell me where I can find it.
Thanks!
Hello,
Unfortunately, there isn't any API that gives you this information. This is because within the FIFO register of the LPUART, there isn't any information that tells you either how many elements the FIFO exactly has or how many empty spaces are.
Have a great day,
Victor
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct"button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Don't use my my full name on the Internet! Who want to end in a search about the element used in a TX register!!
So the only way to empty the TX register is a while not empty loop? That is not really sophisticated.
Hello,
Yes, if you want to know exactly how many free spaces you have on the TX FIFO you will have to implement something like a while not empty loop.
Regards,
Victor