sgdk
vdp_dma.h
Go to the documentation of this file.
00001 
00011 #ifndef _VDP_DMA_H_
00012 #define _VDP_DMA_H_
00013 
00014 
00019 #define VDP_DMA_VRAM    0
00020 
00024 #define VDP_DMA_CRAM    1
00025 
00029 #define VDP_DMA_VSRAM   2
00030 
00031 
00035 #define VDP_doVRamDMA(from, to, len)            \
00036     VDP_doDMA(VDP_DMA_VRAM, from, to, len)
00037 
00040 #define VDP_doCRamDMA(from, to, len)            \
00041     VDP_doDMA(VDP_DMA_CRAM, from, to, len)
00042 
00045 #define VDP_doVSRamDMA(from, to, len)           \
00046     VDP_doDMA(VDP_DMA_VSRAM, from, to, len)
00047 
00048 
00052 void VDP_doDMAEx(u8 location, u32 from, u16 to, u16 len, s16 vramStep);
00056 void VDP_doDMA(u8 location, u32 from, u16 to, u16 len);
00060 void VDP_doVRamDMAFill(u16 to, u16 len, u8 value);
00064 void VDP_doVRamDMACopy(u16 from, u16 to, u16 len);
00065 
00066 
00067 #endif // _VDP_DMA_H_
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines