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 name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>CTRDG_Read</TITLE> 8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">CTRDG_Read* <IMG src="../image/NTR.gif" align="middle"></H1> 12<H2>Syntax</H2> 13<DL> 14 <DD> 15 <PRE><CODE>#include <nitro/ctrdg.h></CODE></PRE> 16 <PRE><CODE>BOOL CTRDG_Read8( const u8* address, u8* rdata ); 17BOOL CTRDG_Read16( const u16* address, u16* rdata ); 18BOOL CTRDG_Read32( const u32* address, u32* rdata ); 19 </CODE></PRE> 20</DL> 21<H2>Arguments</H2> 22<TABLE border="1"> 23 <TBODY> 24 <TR> 25 <TD><B><I>address</I></B></TD> 26 <TD>The read address.</TD> 27 </TR> 28 <TR> 29 <TD><B><I>rdata</I></B></TD> 30 <TD>The pointer that stores the read data.</TD> 31 </TR> 32 </TBODY> 33</TABLE> 34<H2>Return Values</H2> 35<P>Returns <code>TRUE</code> if the read succeeds. Returns <code>FALSE</code> when there is no Game Pak or if the Game Pak could not be read.</P> 36<H2>Description</H2> 37<P>These functions read data from the Game Pak.</P> 38<P><code>CTRDG_Read8()</code> reads 8-bit data.<br /><code>CTRDG_Read16()</code> reads 16-bit data.<br /><code>CTRDG_Read32()</code> reads 32-bit data.</P> 39<P>These functions do not set the access cycle. The access cycle must be set in advance.</P> 40<H2>See Also</H2> 41<P><a href="CTRDG_Init.html"><code>CTRDG_Init</a></code>, <code><a href="CTRDG_DmaCopy.html">CTRDG_DmaCopy*</a></code>, <code><a href="CTRDG_CpuCopy.html">CTRDG_CpuCopy*</a></code>, <code><a href="CTRDG_Write.html">CTRDG_Write*</a></code></P> 42<H2>Revision History</H2> 43<P>2004/09/17 Initial version.</P> 44<hr><p>CONFIDENTIAL</p></body> 45</HTML> 46