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 6.5.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<TITLE>CARDCheckAsync</TITLE>
9</HEAD>
10<BODY>
11<H1>CARDCheckAsync</H1>
12<H2>C Specification</H2>
13<DL>
14  <DD>
15<PRE><code>#include &lt;revolution/card.h&gt;
16
17typedef void (*CARDCallback)( s32 chan, s32 result );</code></PRE>
18  <DD>
19<PRE><CODE>s32 CARDCheckAsync(s32 chan, 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><STRONG><EM><code>chan</code></EM></STRONG></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><EM><STRONG><CODE>callback</CODE></STRONG></EM></CODE></STRONG></EM></TD>
30<TD width="520">Callback function to notify about the result.</TD>
31    </TR>
32  </TBODY>
33</TABLE>
34<H2>Return Values</H2>
35<P>One of the following codes:</P>
36<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>
37<H2>Description</H2>
38<P>Asynchronously checks the Memory Card for file system consistency and repairs it if possible.</P>
39<P><b>Note:</b>The <CODE>CARDCheckAsync</CODE> function can take milliseconds of CPU processing time and must not be called when the interrupt is prohibited.</P>
40<H2>See Also</H2>
41<P><A href="CARDGetResultCode.html"><CODE>CARDGetResultCode</CODE></A></P>
42<H2>Revision History</H2>
43<P>03/01/2006 Initial version.</P>
44</BODY>
45</HTML>