#include <nitro/gx/gx_load.h>
void GX_LoadBGPltt(const void *pSrc, u32 offset, u32 szByte);
This function uses DMA to transfer standard BG palette data to the Main 2D Engine palette RAM for BG. An offset can be specified for the transfer destination address. The DMA channel that is used is GX_DMAID (defined in gxcommon.h). The transfer destination address is HW_BG_PLTT in the ARM9 memory space + offset. Both offset and szByte must be multiples of 2.
Notes:
DC_FlushRange
prior to the process.pSrc |
Pointer to transfer source |
offset |
Offset |
szByte |
Transfer size (in bytes) |
None
GX_LoadBG0Scr,
GX_LoadBG1Scr,
GX_LoadBG2Scr,
GX_LoadBG3Scr,
GX_LoadBG0Char,
GX_LoadBG1Char,
GX_LoadBG2Char,
GX_LoadBG3Char
02/09/2004 Revised and added to the description
01/19/2004 Initial Version