Complete the code to start a DMA transfer.
DMA_StartTransfer([1]);The function DMA_StartTransfer needs the data buffer to begin the transfer.
Complete the code to check if DMA transfer is complete.
if (DMA_Status() == [1]) { // Transfer done }
The status DMA_DONE indicates the DMA transfer has finished.
Fix the error in the DMA initialization code.
DMA_Init([1]);
DMA_StartTransfer(buffer, size);The DMA_Init function requires a configuration structure, not the buffer or size.
Fill both blanks to create a DMA transfer that moves data from memory to peripheral.
DMA_SetSource([1]); DMA_SetDestination([2]);
The source is the memory address and the destination is the peripheral address for this transfer.
Fill all three blanks to configure DMA with correct parameters.
DMA_Config config = {
.source = [1],
.destination = [2],
.length = [3]
};The DMA config needs source and destination addresses and the transfer size.
