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>CARDMountAsync</title> 10</head> 11 12<body> 13 14<h1>CARDMountAsync</h1> 15 16 17<h2>C Specification</h2> 18 19<dl> 20<dd><pre><code>#include <revolution/card.h></CODE></pre></dd> 21<dd><pre><CODE>#define CARD_WORKAREA_SIZE (5 * 8 * 1024)</CODE></pre></dd> 22<dd><pre>typedef void (*CARDCallback)( s32 chan, s32 result ); 23 24s32 CARDMountAsync(s32 chan, void* workArea, CARDCallback detachCallback, 25CARDCallback attachCallback);</pre></dd> 26</dl><h2>Arguments</h2> 27<TABLE border="1" cellpadding="3" cellspacing="0"> 28 <tr> 29<TD width="120" bgcolor="#ffffe8"><em><strong><code><STRONG><EM><code>chan</code></EM></STRONG></code></strong></em></TD> 30<TD width="520">EXI channel number.</TD> 31 </tr> 32 <tr> 33<TD width="120" bgcolor="#ffffe8"><em><strong><code><STRONG><EM><code>workArea</code></EM></STRONG></code></strong></em></TD> 34<TD width="520">Pointer to the work area to use while using a Memory Card. The work area must be aligned on a 32-bit boundary and must be larger than or equal to <code>CARD_WORKAREA_SIZE</code>.</TD> 35 </tr> 36 <tr> 37<TD width="120" bgcolor="#ffffe8"><em><strong><code><STRONG><EM><code>detachCallback</code></EM></STRONG></code></strong></em></TD> 38<TD width="520">Callback function to call when the Memory Card is removed from the slot.</TD> 39 </tr> 40 <tr> 41<TD width="120" bgcolor="#ffffe8"><em><strong><code><STRONG><EM><code>attachCallback</code></EM></STRONG></code></strong></em></TD> 42<TD width="520">Callback function to call when the mount operation completes.</TD> 43 </tr> 44</TABLE> 45<h2>Return Values</h2> 46 47<p>One of the following codes:</p> 48 49<table border="1" cellpadding="3" cellspacing="0"> 50 <tr> 51<td>Result Code</td> 52<td>Memory Card Status</td> 53 </tr> 54 <tr> 55<td><code>CARD_RESULT_FATAL_ERROR<br> CARD_RESULT_WRONGDEVICE<br> CARD_RESULT_NOCARD<br> CARD_RESULT_BUSY<br> CARD_RESULT_IOERROR</code></td> 56<td>Memory Card is not mounted.</td> 57 </tr> 58 <tr> 59<td><code>CARD_RESULT_BROKEN<br> CARD_RESULT_ENCODING<br> CARD_RESULT_READY</code></td> 60<td>Memory Card is mounted.</em></td> 61 </tr> 62</table> 63<H2>Description</H2> 64<P>Asynchronously mounts a Memory Card.</P> 65<P><strong><STRONG>Note:</STRONG></strong> If the <code>CARDMount</code> function returns the <code>CARD_RESULT_READY</code> or <code>CARD_RESULT_BROKEN</code> codes after the Memory Card is mounted, <code><a href="CARDCheck.html">CARDCheck</a><a href="CARDCheckAsync.html">[Async]</a></code> must be used for verification.</P> 66 67<h2>See Also</h2> 68<p> 69<code><a href="CARDCheck.html">CARDCheck</a><a href="CARDCheckAsync.html">[Async]</a></code> 70</p> 71 72<H2>Revision History</H2> 73<P>03/01/2006 Initial version.</P> 74</body> 75</html> 76