S32K116 LSPI MasterTransfer

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

S32K116 LSPI MasterTransfer

Jump to solution
1,469 Views
Embedded_novice
Contributor III

我想使用图中的函数进行SPI的异步传输,但是我将SPI配置为DMA传输后这个函数无法实现通信,是否意味着这个函数只能在interrupt模式下调用?

image.png

0 Kudos
Reply
1 Solution
1,424 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

you can used async transfer using DMA as well, just you need to test if it is completed using LPSPI_DRV_MasterGetTransferStatus or you need to have callback installed to get into it after transfer is finished.

You can refer to lpspi_dma_master_s32k116 demo for DMA usage, but blocking function is used there.

BR, Petr

View solution in original post

0 Kudos
Reply
1 Reply
1,425 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

you can used async transfer using DMA as well, just you need to test if it is completed using LPSPI_DRV_MasterGetTransferStatus or you need to have callback installed to get into it after transfer is finished.

You can refer to lpspi_dma_master_s32k116 demo for DMA usage, but blocking function is used there.

BR, Petr

0 Kudos
Reply