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 HomePage Builder 2000 V4.0.6  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>CARDGetXferredBytes</title>
10</head>
11
12<body>
13
14<h1>CARDGetXferredBytes</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20  <dd><pre><code>#include &lt;revolution/card.h&gt;
21
22#define CARD_XFER_CREATE    (2 * 8 * 1024)  // CARDCreate[Async]
23#define CARD_XFER_DELETE    (2 * 8 * 1024)  // CARD[Fast]Delete[Async]
24#define CARD_XFER_MOUNT     (5 * 8 * 1024)  // CARDMount[Async]
25#define CARD_XFER_FORMAT    (5 * 8 * 1024)  // CARDFormat[Async]
26#define CARD_XFER_RENAME    (1 * 8 * 1024   // CARDRename[Async]
27#define CARD_XFER_SETSTATUS (1 * 8 * 1024)  // CARDSetStatus[Async]
28#define CARD_XFER_RENAME    (1 * 8 * 1024)  // CARDRename[Async]
29#define CARD_XFER_WRITE     (1 * 8 * 1024)  // CARDWrite[Async]
30
31s32 CARDGetXferredBytes(s32 chan);</code></pre>
32  </dd>
33</dl>
34<H2>Arguments</H2>
35<TABLE border="1" cellpadding="3" cellspacing="0.1">
36  <TBODY>
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">Slot number (Slot A: 0, Slot B: 1)</TD>
40    </TR>
41  </TBODY>
42</TABLE>
43<H2>Return Values</H2>
44<P>Returns the total number of bytes (rounded up) read from and written to Memory Cards via the specified channel.</P>
45<h2>Description</h2>
46
47<P>Returns the total number of bytes read from or written to Memory Cards via the specified channel. This function is provided for implementing a progress bar, etc. to show onscreen while data saves. Via the corresponding API function, each <code>CARD_XFER_*</code> macro provides the data that the user supplies as well as the number of internally transmitted bytes. The <code>CARDGetXferredBytes</code> function can be called even when read/write to a Memory Card is in progress.</P>
48
49<h2>See Also</h2>
50<H2>Revision History</H2>
51<P>2006/03/01 Initial version.</P>
52<hr>
53<P>CONFIDENTIAL</p>
54</BODY>
55</HTML>
56