#include <revolution/card.h>#define CARD_WORKAREA_SIZE (5 * 8 * 1024)s32 CARDMount(s32 chan, void* workArea, CARDCallback detachCallback);chan |
EXI channel number. |
|
Pointer to the work area to use while using a Memory Card. The work area must be 32 byte aligned and must be larger than or equal to CARD_WORKAREA_SIZE. |
|
Callback function to call when the Memory Card is removed from the slot. |
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. |
Mounts a memory card synchronously.
This function may put the current thread to sleep. For precautions when calling similar functions, refer to Interrupts and Callback Functions.
Note: If CARDMount returns CARD_RESULT_READY or CARD_RESULT_BROKEN after the memory card is mounted, verification using CARDCheck[Async] is required.
2007/09/25 Added information on the sleep status of threads.
2006/03/01 Initial version.
CONFIDENTIAL