1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>GX_LoadOBJPltt</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">GX_LoadOBJPltt <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1>
15<H2>Syntax</H2>
16
17<dl>
18  <dd>
19<PRE>
20<CODE>#include &lt;nitro/gx/gx_load.h&gt;</CODE><BR>
21<CODE>void GX_LoadOBJPltt(const void *pSrc, u32 offset, u32 szByte);</CODE></PRE></dd>
22</dl><h2>Arguments</h2>
23<TABLE border="1" width="100%">
24  <TBODY>
25    <TR>
26      <TD width="190"><em><strong><font face="Courier New">pSrc</font></strong></em></TD>
27      <TD width="512">Pointer to transfer origin</TD>
28    </TR>
29    <TR>
30      <TD width="190"><em><strong><font face="Courier New">offset</font></strong></em></TD>
31      <TD width="512">Offset</TD>
32    </TR>
33    <TR>
34      <TD width="190"><em><strong><font face="Courier New">szByte</font></strong></em></TD>
35      <TD width="512">Transfer size (in bytes)</TD>
36    </TR>
37  </TBODY>
38</TABLE>
39<h2>Return Values</h2>
40<p>None.</p>
41<H2>Description</H2>
42<P>This function uses DMA to transfer standard OBJ palette data to the Main 2D Engine's OBJ palette RAM. An offset can be specified for the transfer destination address. The DMA channel that is used is <code>GX_DMAID</code> (defined in <code>gxcommon.h</code>). The transfer destination address is <code>HW_OBJ_PLTT</code> in the ARM9 memory space + <em><strong><code>offset</code></strong></em>. Both <em><strong><code>offset</code></strong></em> and <em><strong><code>szByte</code></strong></em> must be multiples of 2.</P>
43<P><B>Notes:</B> Because the DMA transfer is carried out internally, the transfer source data must be written to main memory in advance using a function such as <CODE><A href="../../os/cache/DC_FlushRange.html" target="_self">DC_FlushRange</A></CODE>.<BR>If the regions for transfer source and transfer destination overlap, the operation result is not guaranteed.</P>
44<h2>See Also</h2>
45<P><code><A href="GX_LoadOBJ.html">GX_LoadOBJ</A></code>, <code><A href="GX_LoadOAM.html">GX_LoadOAM</A></code></P>
46<H2>Revision History</H2>
47<P>2004/02/09</P>
48<UL>
49  <LI>Revised and expanded the description.
50</UL>
51<P>2004/01/19 Initial version.</P>
52<hr><p>CONFIDENTIAL</p></body>
53</html>
54