#include <revolution/nand.h> BOOL NANDSetAutoErrorMessaging(BOOL enable);
| enable | TRUE (the default setting) enables Auto Error Message mode. FALSE disables this mode. |
|---|
Returns TRUE if Auto Error Message mode is enabled and FALSE if it is disabled.
Changes the Auto Error Message mode.
When this mode is enabled, the NAND flash device driver processes some result codes (see below). When an error occurs, it displays the appropriate error message on the TV screen and immediately disconnects by calling the OSFatal function. During this time, no application code can execute. In other words, developers do not need to worry about responding to the result codes shown below.
Depending on the system's language setting, the appropriate error message is selected from one of seven languages (English, Japanese, German, French, Spanish, Italian, or Dutch).
Developers who plan to implement their own FATAL error message must call NANDSetAutoErrorMessaging(FALSE) at the start of their applications.
This function automatically displays the error messages corresponding to the following result codes.
NAND_RESULT_MAXBLOCKS
NAND_RESULT_MAXFILES
NAND_RESULT_CORRUPT
NAND_RESULT_BUSY
NAND_RESULT_ALLOC_FAILED
NAND_RESULT_UNKNOWN
Note that the application is still responsible for displaying messages for other result codes (for example, NAND_RESULT_ECC_CRIT).
2009/07/24 Initial version.
CONFIDENTIAL