S32K312 uart的接收(Rx)问题

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K312 uart的接收(Rx)问题

Jump to solution
852 Views
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 Kudos
Reply
1 Solution
825 Views
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.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
1 Reply
826 Views
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 Kudos
Reply