Hi all,
I am really stucked about how can I get receive or send count in data transfer. I have three question :
Q1 : How can I get send or receive data size on bus while I am using LPUART_WriteByte and LPUART_ReadByte? Like LPUART_TransferGetSendCount and LPUART_TransferGetReceiveCount?
Q2: I am not able to get receive count in LPUART hardware flow control example in SDK what is the correct usage of that? I am calling
- int32_t count = 0;
- LPUART_TransferGetReceiveCount(DEMO_LPUART,&g_lpuartHandle,&count);
lines after LPUART_TransferSendNonBlocking function.
Q3: In my case main purpose is detecting incoming byte count in LPUART Polling approach. Then I want to read bytes as many as detected count. How can I do that? I know RXCOUNT mask can help to me but I wonder about How can I catch or detect exact byte count that coming to the bus?
Q4: Why RXFIFOSIZE is always 0b001, so 4 word? I am debugging the transmission process in a project that consist LPUART_TransferSendNonBlocking and LPUART_TransferReceiveNonBlocking, RXFIFOSIZE value in FIFO register. I know there is a threshold in LPUART_Init. But why it is set up to 4word. Is that the upper limit for IMXRT1024 LPUART?
Thanks and Regards.