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_VerifyAgbSramAsync</TITLE> 8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">CTRDG_VerifyAgbSramAsync <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_VerifyAgbSramAsync(u32 tgt, const void* src, 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">tgt</SPAN></TD> 24<TD>Pointer to the SRAM address to be verified (data to be written, address in the AGB memory map).</TD> 25 </TR> 26 <TR> 27<TD><SPAN class="argument">src</SPAN></TD> 28<TD>Pointer to the verification source work area address (original data).</TD> 29 </TR> 30 <TR> 31<TD><SPAN class="argument">size</SPAN></TD> 32<TD>Size of data verified in bytes.</TD> 33 </TR> 34 <TR> 35<TD><SPAN class="argument">callback</SPAN></TD> 36<TD>Callback function called when verify processing ends.</TD> 37 </TR> 38 </TBODY> 39</TABLE> 40<H2>Return Values</H2> 41<P>None.</P> 42<H2>Description</H2> 43<P>Asynchronously verifies data of the size given by <SPAN class="argument">size</SPAN> from the address in the work area given by <SPAN class="argument">src</SPAN> against the data at the address given by <SPAN class="argument">tgt</SPAN> in SRAM.<br>You can find out whether the verify process succeeded by accessing the result member of the <CODE>CTRDGTaskInfo</CODE> structure used as an argument to the callback function that returns after this routine is called. <br>It returns zero if the verify process succeeded, non-zero if the process failed, and the error address on the device side if the verify process resulted in an error.</P> 44<P>The access cycle setting is created in the function and does not need to be set in advance.</P> 45<P><B>Note:</B> The cartridge bus is locked for a set period by this function. <br>Note that the AGB backup device cannot be accessed normally with IS-NITRO-DEBUGGER version 1.66 or earlier.</P> 46<H2>See Also</H2> 47<P><A href="CTRDG_VerifyAgbSram.html"><CODE>CTRDG_VerifyAgbSram</CODE></A></P> 48<H2>Revision History</H2> 49<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> 50<hr><p>CONFIDENTIAL</p></body> 51</HTML> 52