CARDFormat

C Specification

#include <revolution/card.h>
s32 CARDFormat(s32 chan);

Arguments

chan EXI channel number.

Return Values

One of the following codes:

CARD_RESULT_FATAL_ERROR
CARD_RESULT_NOCARD
CARD_RESULT_BUSY
CARD_RESULT_IOERROR
CARD_RESULT_READY

Description

Synchronously formats a Memory Card. This function does not return until formatting has ended.

This function may put the current thread to sleep. For precautions when calling similar functions, refer to Interrupts and Callback Functions.

Note: This function is provided for debugging purposes. Applications should not use this function.

See Also

Revision History

2007/09/25 Added information on the sleep status of threads.
2006/03/01 Initial version.


CONFIDENTIAL