#include <nitro/gx/gx_load.h>
void GXS_LoadBG0Scr(const void *pSrc, u32 offset, u32 szByte);
pSrc | Pointer to transfer origin |
offset | Offset |
szByte | Transfer size (in bytes) |
None.
This function uses DMA to transfer screen data to the BG0 screen data base address in the sub 2D Engine BG-VRAM. An offset can be specified for the transfer destination address. The DMA channel that is used is GX_DMAID
(defined in gxcommon.h
). Both offset
and szByte
must be 2-byte aligned. The transfer destination address is (u32) G2S_GetBG0ScrPtr()
+ offset
.
Notes: Because the DMA transfer is carried out internally, the transfer source data must be flushed to the main memory using a function such as DC_FlushRange
prior to the process. If the regions for transfer source and transfer destination overlap, the operation result is not guaranteed.
GXS_LoadBGPltt
, GXS_LoadBG0Char
02/09/2004 Initial version.