The Socrates Gameboy Advance Development Engine
The SGADE is a development library for the Nintendo Gameboy
Advance. It's free for all uses and is distributed without guarantees.
For more information visit
the SGADE page.
#include "SoSystem.h"#include "SoDMA.h"#include "SoDebug.h"Defines | |
| #define | SO_DMA_ENABLE |
| Turns the DMA transfer on. | |
| #define | SO_REG_DMA_N_SAD(n) |
| DMA n Source Address Register. | |
| #define | SO_REG_DMA_N_DAD(n) |
| DMA n Destination Address Register. | |
| #define | SO_REG_DMA_N_CNT_L(n) |
| DMA n Control Register (word count). | |
| #define | SO_REG_DMA_N_CNT_H(n) |
| DMA n Control Register (control). | |
Functions | |
| void | SoDMAStop (u32 a_Channel) |
| Stops DMA transfer. | |
| void | SoDMATransfer (u32 a_Channel, void *a_Source, void *a_Destination, u32 a_WordCount, u32 a_Control) |
| Transfers a memory block using DMA. | |
| void | SoDMA0Transfer (const void *a_Source, void *a_Destination, u32 a_WordCount, u32 a_Control) |
| Transfers a memory block using DMA channel 0. | |
| void | SoDMA1Transfer (const void *a_Source, void *a_Destination, u32 a_WordCount, u32 a_Control) |
| Transfers a memory block using DMA channel 1. | |
| void | SoDMA2Transfer (const void *a_Source, void *a_Destination, u32 a_WordCount, u32 a_Control) |
| Transfers a memory block using DMA channel 2. | |
| void | SoDMA3Transfer (const void *a_Source, void *a_Destination, u32 a_WordCount, u32 a_Control) |
| Transfers a memory block using DMA channel 3. | |
|
|
Turns the DMA transfer on.
For internal use only.
|
|
|
DMA n Control Register (control).
For internal use only.
|
|
|
DMA n Control Register (word count).
For internal use only.
|
|
|
DMA n Destination Address Register.
For internal use only.
|
|
|
DMA n Source Address Register.
For internal use only.
|