CARDMount

C Specification

#include <revolution/card.h>
#define CARD_WORKAREA_SIZE  (5 * 8 * 1024)
s32 CARDMount(s32 chan, void* workArea, CARDCallback detachCallback);

Arguments

chan EXI channel number.
workArea 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.
detachCallback Callback function to call when the Memory Card is removed from the slot.

Return Values

One of the following codes:

Result Code Memory Card Status
CARD_RESULT_FATAL_ERROR
CARD_RESULT_WRONGDEVICE
CARD_RESULT_NOCARD
CARD_RESULT_BUSY
CARD_RESULT_IOERROR
Memory Card is not mounted.
CARD_RESULT_BROKEN
CARD_RESULT_ENCODING
CARD_RESULT_READY
Memory Card is mounted.

Description

Synchronously 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.

See Also

CARDCheck[Async]

Revision History

03/01/2006 Initial version.