#include <revolution/card.h>
#define CARD_XFER_CREATE (2 * 8 * 1024) // CARDCreate[Async]
#define CARD_XFER_DELETE (2 * 8 * 1024) // CARD[Fast]Delete[Async]
#define CARD_XFER_MOUNT (5 * 8 * 1024) // CARDMount[Async]
#define CARD_XFER_FORMAT (5 * 8 * 1024) // CARDFormat[Async]
#define CARD_XFER_RENAME (1 * 8 * 1024) // CARDRename[Async]
#define CARD_XFER_SETSTATUS (1 * 8 * 1024) // CARDSetStatus[Async]
#define CARD_XFER_SETATTRIBUTES (1 * 8 * 1024) // CARDSetAttributes[Async]
#define CARD_XFER_WRITE (1 * 8 * 1024) // CARDWrite[Async]
s32 CARDGetXferredBytes(s32 chan);
|
Slot number (Slot A: 0, Slot B: 1) |
Returns the total number of bytes (rounded up) read from and written to Memory Cards via the specified channel.
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 CARD_XFER_* macro provides the data that the user supplies as well as the number of internally transmitted bytes. The CARDGetXferredBytes function can be called even when read/write to a Memory Card is in progress.
03/01/2006 Initial version.