Forum Discussion
Altera_Forum
Honored Contributor
15 years agoSGDMA debug
Hello, I am trying to learn how to use SGDMA to transfer data to memory. First of all, I am trying to connect SGDMA TX directly to SGDMA RX and check results. You can find the source code ->here<-...
Altera_Forum
Honored Contributor
15 years agoThis is my code.You can register the Callback function like this:
alt_avalon_sgdma_register_callback(SGDMA_TX_DEV, &TX_callback_function, (ALTERA_AVALON_SGDMA_CONTROL_IE_GLOBAL_MSK | ALTERA_AVALON_SGDMA_CONTROL_IE_CHAIN_COMPLETED_MSK | ALTERA_AVALON_SGDMA_CONTROL_PARK_MSK | ALTERA_AVALON_SGDMA_CONTROL_IE_DESC_COMPLETED_MSK ), NULL);