S32K312 uart的接收(Rx)问题

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K312 uart的接收(Rx)问题

ソリューションへジャンプ
967件の閲覧回数
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 解決策
940件の閲覧回数
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 返信
941件の閲覧回数
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 件の賞賛
返信