RawNandFlash_WritePage
Default mainpageat91libmemoriesnandflashRawNandFlash_WritePage
Description Source Call Graph
RawNandFlash_WritePage
Writes the data and/or the spare area of a page on a NandFlash chip.
 
Syntax / parameters
unsigned char RawNandFlash_WritePage (const struct RawNandFlash *raw, unsigned short block, unsigned short page, void *data, void *spare)

Name Type Default Description
raw const struct RawNandFlash *
  Pointer to a RawNandFlash instance.
block unsigned short
  Number of the block where the page to write resides.
page unsigned short
  Number of the page to write inside the given block.
data void *
  Buffer containing the data area.
spare void *
  Buffer containing the spare area.
 
Return value unsigned char
   
Description
Writes the data and/or the spare area of a page on a NandFlash chip.
If one of the buffer pointer is 0, the corresponding area is not written. Retries several time if there is an error. Returns 0 if the write operation is successful; otherwise returns NandCommon_ERROR_BADBLOCK.
 
Source
The documentation for this Member was generated from the following files:
  • RawNandFlash.c