NANDRead

C Specification


#include <revolution/nand.h>

s32 NANDRead(NANDFileInfo *info, void *buf, u32 length);

Arguments

info Pointer to a NANDFileInfo structure.
buf Pointer to the write destination for the data that was read. The write buffer must be 32-byte aligned.
length Number of bytes to read. This value must be a multiple of 32.

Return Values

Returns the number of bytes for the read data when the read is successful. When the write fails, one of the following codes is returned:

NAND_RESULT_ACCESS
NAND_RESULT_AUTHENTICATION
NAND_RESULT_CORRUPT
NAND_RESULT_ECC_CRIT
NAND_RESULT_INVALID
NAND_RESULT_UNKNOWN
NAND_RESULT_FATAL_ERROR

Description

Read data from files in the internal flash memory.

See Also

NANDReadAsync, NANDWrite, NANDWriteAsync, NANDSeek, NANDSeekAsync

Revision History

06/16/2006 Initial version.
08/15/2006 Added AUTHENTICATION result code.


CONFIDENTIAL