The S32K312 UART receives variable length data.

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

The S32K312 UART receives variable length data.

1,132件の閲覧回数
li3
Contributor II

Hi NXP,

    When I use the S32K312 UART to receive data of indefinite length, I encounter the following two questions, please ask NXP to answer, preferably give an engineering example.

    How to use interrupts to receive data of indefinite length?

    How to use DMA to receive variable length data?

Best regards,

Li 3

0 件の賞賛
返信
1 返信

1,092件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @li3,

Both the interrupts and the DMA transfers are handled by the LPUART driver.

Call the Lpuart_Uart_Ip_AsyncReceive() and use the UartCallback.

danielmartynek_0-1715929765002.png

There is this API that can be used to extend the AsyncReceive() call from the callback:

danielmartynek_1-1715929821288.png

Also, the application can call Lpuart_Uart_Ip_GetReceiveStatus() to get the status of the call.

 

BR, Daniel

 

 

0 件の賞賛
返信