目前是初学,看到uart的example都是使用函数
Lpuart_Uart_Ip_StatusType Lpuart_Uart_Ip_AsyncReceive(const uint8 Instance,
uint8 * RxBuff,
const uint32 RxSize)
和函数
Lpuart_Uart_Ip_StatusType Lpuart_Uart_Ip_GetReceiveStatus(const uint8 Instance, uint32 * BytesRemaining)
来实现uart的Rx来获取或者读取数据,这里需要提前了解数据的长度并且需要等待,我们的真实场景是Rx获取的数据长度是不固定的,有没有检测Rx端有数据的中断或者函数,然后我们通过函数直接去读取,大家有这样的例子吗?
Solved! Go to Solution.
Hi
Please refer to the example in DMA UART IDLE
Best Regards,
Robin
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------
Hi
Please refer to the example in DMA UART IDLE
Best Regards,
Robin
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------