#include <revolution/card.h>
#define CARD_READ_SIZE 512
typedef void (*CARDCallback)( s32 chan, s32 result );
s32 CARDReadAsync(CARDFileInfo* fileInfo, void* buf, s32 length, s32 offset, CARDCallback callback );
|
Pointer to the file info of the file to read. fileInfo must be valid file info initialized with the CARD[Fast]Open or CARDCreate[Async] function. |
|
Buffer address (32-byte alignment). |
|
Number of bytes to read (multiple of CARD_READ_SIZE). |
|
The position of the file to start read (multiple of CARD_READ_SIZE). |
|
Callback function to notify about the result. |
One of the following codes:
CARD_RESULT_FATAL_ERROR
CARD_RESULT_NOCARD
CARD_RESULT_BUSY
CARD_RESULT_NOFILE
CARD_RESULT_NOPERM
CARD_RESULT_LIMIT
CARD_RESULT_CANCELED
CARD_RESULT_READY
Asynchronously reads data from a file.
CARD[Fast]Open, CARDCreate[Async], CARDCancel, CARDGetResultCode
03/01/2006 Initial version.