The S32K312 UART receives variable length data.

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

The S32K312 UART receives variable length data.

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

256 Views
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 Kudos
Reply