1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
9<title>CARDCreateAsync</title>
10</head>
11
12<body>
13
14<h1>CARDCreateAsync</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20  <dd>
21  <dl>
22  <dd>
23<pre><code>#include &lt;revolution/card.h&gt;
24
25</code>#define CARD_FILENAME_MAX   32
26
27typedef void (*CARDCallback)( s32 chan, s32 result );</code></pre>
28  </dd>
29  <dd>
30<pre>s32 CARDCreateAsync(s32 chan, const char* fileName, u32 size, CARDFileInfo* fileInfo,
31CARDCallback callback );</pre>
32    </dd>
33</dl>
34  </dd>
35</dl><h2>Arguments</h2>
36<TABLE border="1" cellpadding="3" cellspacing="0.1">
37  <tr>
38<TD width="120" bgcolor="#ffffe8"><em><strong><code><STRONG><EM><code>chan</code></EM></STRONG></code></strong></em></TD>
39<TD width="520">EXI channel number.</TD>
40    </tr>
41  <tr>
42<TD width="120" bgcolor="#ffffe8"><em><strong><code><em><strong><code>fileName</code></strong></em></code></strong></em></TD>
43<TD width="520">Pointer to the file name to create. The maximum number of bytes in a file name is given by <code>CARD_FILENAME_MAX</code>.</TD>
44    </tr>
45  <tr>
46<TD width="120" bgcolor="#ffffe8"><em><strong><code><em><strong><code>size</code></strong></em></code></strong></em></TD>
47<TD width="520">Size of the file to create. The size must be multiples of the card sector size returned by the <code><a href="CARDGetSectorSize.html">CARDGetSectorSize</a></code> function.</TD>
48    </tr>
49  <tr>
50<TD width="120" bgcolor="#ffffe8"><em><strong><code><em><strong><code>fileInfo</code></strong></em></code></strong></em></TD>
51<TD width="520">Pointer to file info to use.</TD>
52    </tr>
53  <tr>
54<TD width="120" bgcolor="#ffffe8"><em><strong><code><EM><STRONG><CODE>callback</CODE></STRONG></EM></code></strong></em></TD>
55<TD width="520">Callback function to notify about the result.</TD>
56    </tr>
57</TABLE>
58<h2>Return Values</h2>
59
60<p>One of the following codes:</p>
61
62<p><code>CARD_RESULT_FATAL_ERROR<br> CARD_RESULT_NOCARD<br> CARD_RESULT_BUSY<br> CARD_RESULT_EXIST<br> CARD_RESULT_NOENT<br> CARD_RESULT_INSSPACE<br> CARD_RESULT_NAMETOOLONG<br> CARD_RESULT_IOERROR<br> CARD_RESULT_READY</code></p>
63<H2>Description</H2>
64<P>Asynchronously creates a file. The Memory Card must be mounted with the <code><a href="CARDMount.html">CARDMount</a><a href="CARDMountAsync.html">[Async]</a></code> function before creating a file.</P>
65<P><STRONG>Note:</STRONG>
66 This function is provided for debugging. Do not use in programs.</P>
67
68<h2>See Also</h2>
69
70<p>
71<code><a href="CARDMount.html">CARDMount</a><a href="CARDMountAsync.html">[Async]</a></code>, <a href="CARDGetSectorSize.html"> <code>CARDGetSectorSize</code></a>
72</p>
73<H2>Revision History</H2>
74<P>03/01/2006 Initial version.</P>
75</body>
76</html>
77