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 8.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>GX_SetBankForARM7</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">GX_SetBankForARM7 <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<CODE>#include &lt;nitro/gx/gx_vramcnt.h&gt;</CODE><BR>
20  <BR>
21  <CODE>void GX_SetBankForARM7(GXVRamARM7 arm7);</CODE></dd>
22</dl><h2>Arguments</h2>
23
24<table border="1" width="100%">
25  <tr>
26    <td width="13%"><em><strong><font face="Courier New">arm7</font></strong></em></td>
27    <td width="87%">Specifies a VRAM bank to allocate to ARM7 memory space.</td>
28  </tr>
29  </table>
30<h2>Return Values</h2>
31<p>None.</p>
32<H2>Description</H2>
33<P>Allocates the specified VRAM bank to ARM7 memory space. If the specified VRAM bank is either disabled or allocated to LCDC, this allocates the VRAM bank to ARM7 memory space.
34</P>
35<TABLE border="1">
36  <TBODY>
37    <TR>
38      <TD><CODE>GX_VRAM_ARM7_NONE</CODE></TD>
39      <TD>The VRAM bank is not allocated in the ARM7 memory space.</TD>
40    </TR>
41    <TR>
42      <TD><CODE>GX_VRAM_ARM7_128_C</CODE></TD>
43      <TD>128 kilobytes are reserved in the ARM7 memory space. VRAM-C is allocated.</TD>
44    </TR>
45    <TR>
46      <TD><CODE>GX_VRAM_ARM7_128_D</CODE></TD>
47      <TD>128 kilobytes are reserved in the ARM7 memory space. VRAM-D is allocated.</TD>
48    </TR>
49    <TR>
50      <TD><CODE>GX_VRAM_ARM7_256_CD</CODE></TD>
51      <TD>256 kilobytes are reserved in the ARM7 memory space. VRAM-C and -D are allocated.</TD>
52    </TR>
53  </TBODY>
54</TABLE>
55<P>The following is the type definition for GXVRamARM7 types.</P>
56<PRE><CODE>typedef enum
57{
58    GX_VRAM_ARM7_NONE = 0x0000,
59    GX_VRAM_ARM7_128_C  = GX_VRAM_C, // ARM7: 0x06000000   --&gt;   0x06020000
60    GX_VRAM_ARM7_128_D  = GX_VRAM_D, // ARM7: 0x06000000   --&gt;   0x06020000
61    GX VRAM_ARM7_256_CD = GX_VRAM_C | GX_VRAM_D // ARM7: 0x06000000   --&gt;   0x06040000
62}
63GXVRamARM7;</PRE>
64<h2>See Also</h2>
65<P><a href="GX_GetBankForARM7.html"><code>GX_GetBankForARM7</code></a>, <a href="GX_ResetBankForARM7.html"><code>GX_ResetBankForARM7</code></a>, <a href="GX_DisableBankForARM7.html"><code>GX_DisableBankForARM7</code></a> <a href="GX_GetSizeOfARM7.html"><code>GX_GetSizeOfARM7</code></a></P>
66<H2>Revision History</H2>
67<P>2004/01/19 Initial version.</P>
68<hr><p>CONFIDENTIAL</p></body>
69</html>
70