Forum Discussion
Altera_Forum
Honored Contributor
15 years agoresult=alt_avalon_sgdma_do_async_transfer(sgdma_sd ram, &desc[0])
hi: in the niosII BST ,I am puzzled in the the code below : ...... result=alt_avalon_sgdma_do_async_transfer(sgdma_sdram, &desc[0]); if(!result) printf("Writing the head of the receive des...
Altera_Forum
Honored Contributor
15 years agothe async function returns immediately, so it's possible that the transfer is still going on when it returns. The return value just says if the DMA could be started correctly or not.
Use the sync function if you wan t to wait for the end of transfer. The returned value will be the SGDMA status at the end of transfer.