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>CARDCheck</TITLE> 9</HEAD> 10<BODY> 11<H1>CARDCheck</H1> 12<H2>C Specification</H2> 13<DL> 14 <DD> 15<PRE><code>#include <revolution/card.h></CODE></PRE> 16 <DD> 17<PRE><CODE>s32 CARDCheck(s32 chan)<code>;</code></CODE></PRE> 18</DL> 19<H2>Arguments</H2> 20<TABLE border="1" cellpadding="3" cellspacing="0.1"> 21 <TBODY> 22 <TR> 23<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE>chan</CODE></STRONG></EM></TD> 24<TD width="520">EXI channel number.</TD> 25 </TR> 26 </TBODY> 27</TABLE> 28<H2>Return Values</H2> 29<P>One of the following codes:</P> 30<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> 31<H2>Description</H2> 32<P>Synchronously checks the Memory Card for file system consistency and repairs it if possible.</P> 33<p> 34This 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>. 35</p> 36<P><b>Note:</b> The <CODE>CARDCheck</CODE> function can take milliseconds in CPU processing time and must not be called when the interrupt is prohibited.</P> 37<H2>See Also</H2> 38<H2>Revision History</H2> 39<P>2007/09/25 Added information on the sleep status of threads.<br>2006/03/01 Initial version.</P> 40<hr><p>CONFIDENTIAL</p></body> 41</HTML>