EccNandFlash_WritePage
Default mainpageat91libmemoriesnandflashEccNandFlash_WritePage
Description Source Call Graph
EccNandFlash_WritePage
Writes the data and/or spare area of a nandflash page, after calculating an ECC for the data area and storing it in the spare.
 
Syntax / parameters
unsigned char EccNandFlash_WritePage (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 the block to write in.
page unsigned short
  Number of the page to write inside the given block.
data void *
  Data area buffer, can be 0.
spare void *
  Spare area buffer, can be 0.
 
Return value unsigned char
   
Description
Writes the data and/or spare area of a nandflash page, after calculating an ECC for the data area and storing it in the spare.
If no data buffer is provided, the ECC is read from the existing page spare. If no spare buffer is provided, the spare area is still written with the ECC information calculated on the data buffer. Returns 0 if successful; otherwise returns an error code.
 
Source
The documentation for this Member was generated from the following files:
  • EccNandFlash.c