S32K312 uart的接收(Rx)问题

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K312 uart的接收(Rx)问题

跳至解决方案
1,001 次查看
haha_123456
Contributor I

目前是初学,看到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端有数据的中断或者函数,然后我们通过函数直接去读取,大家有这样的例子吗?

0 项奖励
回复
1 解答
974 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
975 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

0 项奖励
回复