EccNandFlash_ReadPage
Default mainpageat91libmemoriesnandflashEccNandFlash_ReadPage
Description Source Call Graph
EccNandFlash_ReadPage
Reads the data and/or spare of a page of a nandflash chip, and verify that the data is valid using the ECC information contained in the spare.
 
Syntax / parameters
unsigned char EccNandFlash_ReadPage (const struct EccNandFlash *ecc, unsigned short block, unsigned short page, void *data, void *spare)

Name Type Default Description
ecc const struct EccNandFlash *
  Pointer to an EccNandFlash instance.
block unsigned short
  Number of block to read from.
page unsigned short
  Number of page to read inside given block.
data void *
  Data area buffer.
spare void *
  Spare area buffer.
 
Return value unsigned char
   
Description
Reads the data and/or spare of a page of a nandflash chip, and verify that the data is valid using the ECC information contained in the spare.
If one buffer pointer is 0, the corresponding area is not saved. Returns 0 if the data has been read and is valid; otherwise returns either NandCommon_ERROR_CORRUPTEDDATA or ...
 
Source
The documentation for this Member was generated from the following files:
  • EccNandFlash.c