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>CARDSetStatus</TITLE>
9</HEAD>
10<BODY>
11<H1>CARDSetStatus</H1>
12<H2>C Specification</H2>
13<DL>
14  <DD>
15  <PRE><code>#include &lt;revolution/card.h&gt;
16
17#define CARD_READ_SIZE      512</CODE></PRE>
18  <DD>
19  <PRE><CODE>s32 CARDSetStatus(s32 chan, s32 fileNo, <A href="CARDStat.html">CARDStat</A>* stat);</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><em><strong><code>fileNo</code></strong></em></CODE></STRONG></EM></TD>
30<TD width="520">File entry number.</TD>
31    </TR>
32    <TR>
33<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>stat</CODE></EM></STRONG></CODE></STRONG></EM></TD>
34<TD width="520">Pointer to file status to set.</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_NOFILE<br> CARD_RESULT_NOPERM<br> CARD_RESULT_BUSY<br> CARD_RESULT_IOERROR<br> CARD_RESULT_READY</code></P>
41<H2>Description</H2>
42<P>Synchronously sets a file status using a file number. This function does not return until settings have been made.</P>
43<P><strong>Note:</strong> <code>stat-&gt;iconAddr</code> must be <code>0xffffffff</code> (no icon) or less than <code>CARD_READ_SIZE</code>. At least one icon is required in a game file.</P>
44<p>
45This 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>.
46</p>
47<P><strong>Note:</strong> The 64 bytes of comment data, specified by <code>start-&gt;commentAddr</code>, must not straddle an 8-KB boundary of the file (that is, the comment data must be exactly aligned with [one of] the file's 8-KB blocks).   </P>
48<H2>See Also</H2>
49<P><a target="contents" href="toc.html">Card Functions</a><br> <a href="CARDStat.html"><code>CARDStat</code></a></P>
50<P><STRONG><B>Note:</B></STRONG> This function is provided for debugging purposes. Applications should not use this function.</P>
51<H2>Revision History</H2>
52<P>2007/09/25 Added information on the sleep status of threads.<br>2006/03/01 Initial version.</P>
53<hr><p>CONFIDENTIAL</p></body>
54</HTML>