#include <nitro/gx/gx_load.h>
void GX_LoadBGExtPltt(const void *pSrc, u32 destSlotAddr, u32 szByte);
This function uses DMA to transfer BG palette data to the Main 2D Engine BG
Extended palette. The transfer destination address (in the BG Extended palette) can be specified. The DMA channel that is used is GX_DMAID (defined in gxcommon.h). Both destSlotAddr and szByte must be 4-byte aligned. Call between GX_BeginLoadBGExtPltt and GX_EndLoadBGExtPltt.
Notes:
DC_FlushRange or some similar function.GX_SetBankForBGExtPltt,
GX_ResetBankForBGExtPltt, or
GX_DisableBankForBGExtPltt between
GX_BeginLoadBGExtPltt and
GX_EndLoadBGExtPltt.G2_SetBG0Control. For BG1 you can select 0x2000-0x4000 (slot 1) or 0x6000-0x8000 (slot 3) with G2_SetBG1Control.pSrc |
Pointer to transfer source |
destSlotAddr |
Address to inside of the transfer source BG expanded palette slot |
szByte |
Transfer size (in bytes) |
None
GX_BeginLoadBGExtPltt,
GX_EndLoadBGExtPltt
03/01/2004 Caution about restrictions on placing palette data
02/09/2004 Revised and added to the description
01/19/2004 Initial Version