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 6.5.0.0 for Windows"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<TITLE>CARDCheckExAsync</TITLE> 9</HEAD> 10<BODY> 11<H1>CARDCheckExAsync</H1> 12<H2>C Specification</H2> 13<DL> 14 <DD> 15<PRE><code>#include <revolution/card.h> 16 17typedef void (*CARDCallback)( s32 chan, s32 result );</code></PRE> 18 <DD> 19<PRE><CODE>s32 CARDCheckExAsync(s32 chan, s32* xferBytes, CARDCallback callback)<code>;</code></CODE></PRE> 20</DL> 21<H2>Arguments</H2> 22<TABLE border="1" cellpadding="3" cellspacing="0.1"> 23 <TBODY> 24 <TR> 25<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE>chan</CODE></STRONG></EM></TD> 26<TD width="520">EXI channel number.</TD> 27 </TR> 28 <TR> 29<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE>callback</CODE></STRONG></EM></TD> 30<TD width="520">Callback function to notify about the result.</TD> 31 </TR> 32 <TR> 33<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><EM><STRONG><CODE>xferBytes</CODE></STRONG></EM></CODE></STRONG></EM></TD> 34<TD width="520">Bytes written to the Memory Card to repair the file system.</TD> 35 </TR> 36 </TBODY> 37</TABLE> 38<H2>Return Values</H2> 39<P>One of the following codes:</P> 40<P><code>CARD_RESULT_FATAL_ERROR<br> CARD_RESULT_NOCARD<br> CARD_RESULT_BUSY<br> CARD_RESULT_BROKEN<br> CARD_RESULT_ENCODING<br> CARD_RESULT_IOERROR<br> CARD_RESULT_READY</code></P> 41<H2>Description</H2> 42<P>Asynchronously checks the Memory Card for file system consistency and repairs it if possible.</P> 43<p> 44This function may put the current thread to sleep. For precautions when calling similar functions, refer to <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>. 45</p> 46<P><b>Note:</b> <code>CARDCheckExAsync</code> can take milliseconds in CPU processing time and must not be called when the interrupt is prohibited.</P> 47<H2>See Also</H2> 48<P><A href="CARDGetResultCode.html"><CODE>CARDGetResultCode</CODE></A></P> 49<H2>Revision History</H2> 50<P>2007/09/25 Added information on the sleep status of threads.<br>2006/03/01 Initial version.</P> 51<hr><p>CONFIDENTIAL</p></body> 52</HTML>