1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META http-equiv="Content-Style-Type" content="text/css">
6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.1.0 for Windows">
7<BASE target="main">
8<TITLE>Game Pak (CTRDG) Function List</TITLE>
9<LINK rel="stylesheet" href="../css/apilist.css">
10</HEAD>
11<BODY>
12<H1>Game Pak (CTRDG) Function List</H1>
13<H3><A name="Init">Initialization</A></H3>
14<TABLE border="1" width="100%">
15  <TBODY>
16    <TR>
17<TH width="25%"><A href="CTRDG_Init.html" target="_self">CTRDG_Init</A></TH>
18      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
19<TD>Initializes the Game Pak library.</TD>
20    </TR>
21    <TR>
22<TH width="25%"><A href="CTRDG_DummyInit.html" target="_self">CTRDG_DummyInit</A></TH>
23      <TD width="48"><img src="../image/NTR.gif"><img src="../image/TWL.gif"></TD>
24<TD>Initializes the Game Pak library in a way that minimizes its size.</TD>
25    </TR>
26  </TBODY>
27</TABLE>
28<H3><A name="PulledOut">Removal Detection</A></H3>
29<TABLE border="1" width="100%">
30  <TBODY>
31    <TR>
32<TH width="25%"><A href="CTRDG_IsExisting.html" target="_self">CTRDG_IsExisting</A></TH>
33      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
34<TD>Checks whether a Game Pak is inserted.</TD>
35    </TR>
36    <TR>
37<TH width="25%"><A href="CTRDG_IsPulledOut.html" target="_self">CTRDG_IsPulledOut</A></TH>
38      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
39<TD>Detects a Game Pak removal.</TD>
40    </TR>
41    <TR>
42<TH width="25%"><A href="CTRDG_SetPulledOutCallback.html" target="_self">CTRDG_SetPulledOutCallback</A></TH>
43      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
44<TD>Sets the Game Pak removal callback.</TD>
45    </TR>
46    <TR>
47<TH width="25%"><A href="CTRDG_TerminateForPulledOut.html" target="_self">CTRDG_TerminateForPulledOut</A></TH>
48      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
49<TD>Stops both the ARM9 processor and the ARM7 processor when a Game Pak removal is detected.</TD>
50    </TR>
51    <TR>
52<TH width="25%"><A href="CTRDG_IsAgbCartridgePulledOut.html" target="_self">CTRDG_IsAgbCartridgePulledOut</A></TH>
53      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
54<TD>Detects AGB Game Pak removal.</TD>
55    </TR>
56    <TR>
57<TH width="25%"><A href="CTRDG_IsOptionCartridgePulledOut.html" target="_self">CTRDG_IsOptionCartridgePulledOut</A></TH>
58      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
59<TD>Detects removal of option Game Pak.</TD>
60    </TR>
61    <TR>
62<TH width="25%"><A href="CTRDG_CheckPulledOut.html" target="_self">CTRDG_CheckPulledOut</A></TH>
63      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
64<TD>Immediately carries out Game Pak removal detection from ARM9.</TD>
65    </TR>
66  </TBODY>
67</TABLE>
68<H3><A name="Cart">Types of Game Paks</A></H3>
69<TABLE border="1" width="100%">
70  <TBODY>
71    <TR>
72<TH width="25%"><A href="CTRDG_IsAgbCartridge.html" target="_self">CTRDG_IsAgbCartridge</A></TH>
73      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
74<TD>Returns a Boolean value to indicate if an AGB Game Pak is present.</TD>
75    </TR>
76    <TR>
77<TH width="25%"><A href="CTRDG_IsOptionCartridge.html" target="_self">CTRDG_IsOptionCartridge</A></TH>
78      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
79<TD>Returns a Boolean value to indicate if an Option Pak with peripherals is installed.</TD>
80    </TR>
81    <TR>
82<TH width="25%"><A href="CTRDG_IsBitID.html" target="_self">CTRDG_IsBitID</A></TH>
83      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
84<TD>Returns whether the peripheral device identified by the bit ID is mounted in the Game Pak slot.</TD>
85    </TR>
86    <TR>
87<TH width="25%"><A href="CTRDG_IsNumberID.html" target="_self">CTRDG_IsNumberID</A></TH>
88      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
89<TD>Returns whether the peripheral device identified by the number ID is mounted in the Game Pak slot.</TD>
90    </TR>
91
92  </TBODY>
93</TABLE>
94<H3><A name="AgbInfo">AGB Game Pak Information</A></H3>
95<TABLE border="1" width="100%">
96  <TBODY>
97    <TR>
98<TH width="25%"><A href="CTRDG_GetAgbMakerCode.html" target="_self">CTRDG_GetAgbMakerCode</A></TH>
99      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
100<TD>Returns the AGB Game Pak's maker code.</TD>
101    </TR>
102    <TR>
103<TH width="25%"><A href="CTRDG_GetAgbGameCode.html" target="_self">CTRDG_GetAgbGameCode</A></TH>
104      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
105<TD>Returns the game code (initial code) of AGB Game Pak.</TD>
106    </TR>
107    <TR>
108<TH width="25%"><A href="CTRDG_IsEnabled.html" target="_self">CTRDG_IsEnabled</A></TH>
109      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
110<TD>Retrieves whether access to the AGB Game Pak is enabled or disabled.</TD>
111    </TR>
112    <TR>
113<TH width="25%"><A href="CTRDG_Enable.html" target="_self">CTRDG_Enable</A></TH>
114      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
115<TD>Enables access to the AGB Game Pak.</TD>
116    </TR>
117    <TR>
118<TH width="25%"><A href="CTRDG_CheckEnabled.html" target="_self">CTRDG_CheckEnabled</A></TH>
119      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
120<TD>Determines whether access to the AGB Game Pak is enabled.</TD>
121    </TR>
122  </TBODY>
123</TABLE>
124<H3><A name="Copy">Data Transfer</A></H3>
125<TABLE border="1" width="100%">
126  <TBODY>
127    <TR>
128<TH width="25%"><A href="CTRDG_DmaCopy.html" target="_self">CTRDG_DmaCopy*</A></TH>
129      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
130<TD>Transfers data using DMA.</TD>
131    </TR>
132    <TR>
133<TH width="25%"><A href="CTRDG_CpuCopy.html" target="_self">CTRDG_CpuCopy*</A></TH>
134      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
135<TD>Transfers data using the CPU.</TD>
136    </TR>
137    <TR>
138<TH width="25%"><A href="CTRDG_Read.html" target="_self">CTRDG_Read*</A></TH>
139      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
140<TD>Reads data from the Game Pak area.</TD>
141    </TR>
142    <TR>
143<TH width="25%"><A href="CTRDG_Write.html" target="_self">CTRDG_Write*</A></TH>
144      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
145<TD>Writes data to the Game Pak area.</TD>
146    </TR>
147  </TBODY>
148</TABLE>
149<H3><A name="Backup">AGB Backup Overview</A></H3>
150<TABLE border="1" width="100%">
151  <TBODY>
152    <TR>
153<TH width="25%"><A href="CTRDG_IdentifyAgbBackup.html" target="_self">CTRDG_IdentifyAgbBackup</A></TH>
154      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
155<TD>Identifies the backup device and initializes settings.</TD>
156    </TR>
157    <TR>
158<TH width="25%"><A href="CTRDG_SetTaskThreadPriority.html" target="_self">CTRDG_SetTaskThreadPriority</A></TH>
159      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
160<TD>Changes the priority of a task thread.</TD>
161    </TR>
162    <TR>
163<TH width="25%"><A href="coordinate.html" target="_self">Correspondence Chart</A></TH>
164      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
165<TD>Shows the correspondence between AGB backup access functions for the DS and backup access functions for the AGB.</TD>
166    </TR>
167  </TBODY>
168</TABLE>
169<H3><A name="Flash">FLASH Device</A></H3>
170<TABLE border="1" width="100%">
171  <TBODY>
172    <TR>
173<TH width="25%"><A href="CTRDG_ReadAgbFlash.html" target="_self">CTRDG_ReadAgbFlash</A></TH>
174      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
175<TD>Reads backup device data.</TD>
176    </TR>
177    <TR>
178<TH width="25%"><A href="CTRDG_EraseAgbFlashChip.html" target="_self">CTRDG_EraseAgbFlashChip</A></TH>
179      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
180<TD>Erases backup device data on the flash chip.</TD>
181    </TR>
182    <TR>
183<TH width="25%"><A href="CTRDG_EraseAgbFlashSector.html" target="_self">CTRDG_EraseAgbFlashSector</A></TH>
184      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
185<TD>Erases backup device data in a sector.</TD>
186    </TR>
187    <TR>
188<TH width="25%"><A href="CTRDG_WriteAgbFlashSector.html" target="_self">CTRDG_WriteAgbFlashSector</A></TH>
189      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
190<TD>Writes data in sector units to the backup device.</TD>
191    </TR>
192    <TR>
193<TH width="25%"><A href="CTRDG_VerifyAgbFlash.html" target="_self">CTRDG_VerifyAgbFlash</A></TH>
194      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
195<TD>Verifies data on the backup device (in bytes).</TD>
196    </TR>
197    <TR>
198<TH width="25%"><A href="CTRDG_WriteAndVerifyAgbFlash.html" target="_self">CTRDG_WriteAndVerifyAgbFlash</A></TH>
199      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
200<TD>Writes data to the backup device (in sectors) and verifies that data (in bytes).</TD>
201    </TR>
202    <TR>
203<TH width="25%"><A href="CTRDG_ReadAgbFlashAsync.html" target="_self">CTRDG_ReadAgbFlashAsync</A></TH>
204      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
205<TD>Asynchronously reads backup device data.</TD>
206    </TR>
207    <TR>
208<TH width="25%"><A href="CTRDG_EraseAgbFlashChipAsync.html" target="_self">CTRDG_EraseAgbFlashChipAsync</A></TH>
209      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
210<TD>Asynchronously erases backup device data on the flash chip.</TD>
211    </TR>
212    <TR>
213<TH width="25%"><A href="CTRDG_EraseAgbFlashSectorAsync.html" target="_self">CTRDG_EraseAgbFlashSectorAsync</A></TH>
214      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
215<TD>Asynchronously erases backup device data in a sector.</TD>
216    </TR>
217    <TR>
218<TH width="25%"><A href="CTRDG_WriteAgbFlashSectorAsync.html" target="_self">CTRDG_WriteAgbFlashSectorAsync</A></TH>
219      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
220<TD>Asynchronously writes data (in sectors) to the backup device.</TD>
221    </TR>
222    <TR>
223<TH width="25%"><A href="CTRDG_VerifyAgbFlashAsync.html" target="_self">CTRDG_VerifyAgbFlashAsync</A></TH>
224      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
225<TD>Asynchronously verifies data on the backup device (in bytes).</TD>
226    </TR>
227    <TR>
228<TH width="25%"><A href="CTRDG_WriteAndVerifyAgbFlashAsync.html" target="_self">CTRDG_WriteAndVerifyAgbFlashAsync</A></TH>
229      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
230<TD>Asynchronously writes data to the backup device (in sectors) and verifies that data (in bytes).</TD>
231    </TR>
232  </TBODY>
233</TABLE>
234<H3><A name="Sram">SRAM Device</A></H3>
235<TABLE border="1" width="100%">
236  <TBODY>
237    <TR>
238<TH width="25%"><A href="CTRDG_ReadAgbSram.html" target="_self">CTRDG_ReadAgbSram</A></TH>
239      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
240<TD>Reads backup device data.</TD>
241    </TR>
242    <TR>
243<TH width="25%"><A href="CTRDG_WriteAgbSram.html" target="_self">CTRDG_WriteAgbSram</A></TH>
244      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
245<TD>Writes data (in sectors) to the backup device.</TD>
246    </TR>
247    <TR>
248<TH width="25%"><A href="CTRDG_VerifyAgbSram.html" target="_self">CTRDG_VerifyAgbSram</A></TH>
249      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
250<TD>Verifies data on the backup device (in bytes).</TD>
251    </TR>
252    <TR>
253<TH width="25%"><A href="CTRDG_WriteAndVerifyAgbSram.html" target="_self">CTRDG_WriteAndVerifyAgbSram</A></TH>
254      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
255<TD>Writes data to the backup device (in sectors) and verifies that data (in bytes).</TD>
256    </TR>
257    <TR>
258<TH width="25%"><A href="CTRDG_ReadAgbSramAsync.html" target="_self">CTRDG_ReadAgbSramAsync</A></TH>
259      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
260<TD>Asynchronously reads backup device data.</TD>
261    </TR>
262    <TR>
263<TH width="25%"><A href="CTRDG_WriteAgbSramAsync.html" target="_self">CTRDG_WriteAgbSramAsync</A></TH>
264      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
265<TD>Asynchronously writes data (in sectors) to the backup device.</TD>
266    </TR>
267    <TR>
268<TH width="25%"><A href="CTRDG_VerifyAgbSramAsync.html" target="_self">CTRDG_VerifyAgbSramAsync</A></TH>
269      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
270<TD>Asynchronously verifies data on the backup device (in bytes).</TD>
271    </TR>
272    <TR>
273<TH width="25%"><A href="CTRDG_WriteAndVerifyAgbSramAsync.html" target="_self">CTRDG_WriteAndVerifyAgbSramAsync</A></TH>
274      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
275<TD>Asynchronously writes data to the backup device (in sectors) and verifies that data (in bytes).</TD>
276    </TR>
277  </TBODY>
278</TABLE>
279<H3><A name="Phi">PHI Output Terminal</A></H3>
280<TABLE border="1" width="100%">
281  <TBODY>
282    <TR>
283<TH width="25%"><A href="CTRDG_SetPhiClock.html" target="_self">CTRDG_SetPhiClock</A></TH>
284      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
285<TD>This function sets the PHI output terminal.</TD>
286    </TR>
287    <TR>
288<TH width="25%"><A href="CTRDG_GetPhiClock.html" target="_self">CTRDG_GetPhiClock</A></TH>
289      <TD width="48"><img src="../image/NTR.gif"><img src="../image/BPT.gif"></TD>
290<TD>This function gets PHI output terminal setting values.</TD>
291    </TR>
292  </TBODY>
293</TABLE>
294
295<table border="0" height="100%"><tr><td style="background-color : white;"></td></tr></table>
296
297<hr><p>CONFIDENTIAL</p></body>
298</HTML>