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.1.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>CTRDG_ReadAgbFlashAsync</TITLE> 8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">CTRDG_ReadAgbFlashAsync <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>void CTRDG_ReadAgbFlashAsync(u16 sec_num, u32 offset, u8* dst, u32 size, CTRDG_TASK_FUNC callback); 17 </CODE></PRE> 18</DL> 19<H2>Arguments</H2> 20<TABLE border="1"> 21 <TBODY> 22 <TR> 23<TD><SPAN class="argument">sec_num</SPAN></TD> 24<TD>Destination flash sector number.</TD> 25 </TR> 26 <TR> 27<TD><SPAN class="argument">offset</SPAN></TD> 28<TD>Offset in the sector in bytes.</TD> 29 </TR> 30 <TR> 31<TD><SPAN class="argument">dst</SPAN></TD> 32<TD>Address of the work area to store data that was read.</TD> 33 </TR> 34 <TR> 35<TD><SPAN class="argument">size</SPAN></TD> 36<TD>Size of data read in bytes.</TD> 37 </TR> 38 <TR> 39<TD><SPAN class="argument">callback</SPAN></TD> 40<TD>Callback function called when read processing ends.</TD> 41 </TR> 42 </TBODY> 43</TABLE> 44<H2>Return Values</H2> 45<P>None.</P> 46<H2>Description</H2> 47<P>Reads data of the size given by <SPAN class="argument">size</SPAN> asynchronously to the address given by <SPAN class="argument">dst</SPAN> from the address starting at <SPAN class="argument">offset</SPAN> inside <SPAN class="argument">sec_num</SPAN>.</P> 48<P>The access cycle setting is created in the function and does not need to be set in advance.</P> 49<P><B>Note:</B> The cartridge bus is locked for a set period by this function.</P> 50<P>Note that the AGB backup device cannot be accessed normally with IS-NITRO-DEBUGGER version 1.66 or earlier.</P> 51<PRE>/* callback function */ 52typedef u32 (*CTRDG_TASK_FUNC) (struct CTRDGiTaskInfo_tag *); 53</PRE> 54<H2>See Also</H2> 55<P><A href="CTRDG_ReadAgbFlash.html"><CODE>CTRDG_ReadAgbFlash</CODE></A></P> 56<H2>Revision History</H2> 57<P>2006/05/25 Added a description that the AGB backup device cannot be accessed normally with IS-NITRO-DEBUGGER version 1.66 or earlier.<BR> 2006/04/07 Initial version.</P> 58<hr><p>CONFIDENTIAL</p></body> 59</HTML> 60