#include <revolution/card.h>#define CARD_WORKAREA_SIZE (5 * 8 * 1024)typedef void (*CARDCallback)( s32 chan, s32 result ); s32 CARDMountAsync(s32 chan, void* workArea, CARDCallback detachCallback, CARDCallback attachCallback);
|
EXI channel number. |
|
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 CARD_WORKAREA_SIZE. |
|
Callback function to call when the Memory Card is removed from the slot. |
|
Callback function to call when the mount operation completes. |
One of the following codes:
| Result Code | Memory Card Status |
CARD_RESULT_FATAL_ERROR |
Memory Card is not mounted. |
CARD_RESULT_BROKEN |
Memory Card is mounted. |
Asynchronously mounts a Memory Card.
Note: If the CARDMount function returns the CARD_RESULT_READY or CARD_RESULT_BROKEN codes after the Memory Card is mounted, CARDCheck[Async] must be used for verification.
03/01/2006 Initial version.