The SGADE Documentation

the SGADE 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.


Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

SoDMA.c File Reference

#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.


Detailed Description

Copyright (C) 2002 by the SGADE authors For conditions of distribution and use, see copyright notice in SoLicense.txt

Author:
Gabriele Scibilia, Jaap Suter
Date:
Jan 31 2002
See the SoDMA module for more information.


Define Documentation

#define SO_DMA_ENABLE
 

Turns the DMA transfer on.

For internal use only.

#define SO_REG_DMA_N_CNT_H  
 

DMA n Control Register (control).

For internal use only.

#define SO_REG_DMA_N_CNT_L  
 

DMA n Control Register (word count).

For internal use only.

#define SO_REG_DMA_N_DAD  
 

DMA n Destination Address Register.

For internal use only.

#define SO_REG_DMA_N_SAD  
 

DMA n Source Address Register.

For internal use only.


Copyright 2002 by the SGADE authors. See SoLicense.h or Visit the SGADE page for more information.