RawNandFlash_ReadPage
Default mainpageat91libmemoriesnandflashRawNandFlash_ReadPage
Description Source Call Graph
RawNandFlash_ReadPage
Reads the data and/or the spare areas of a page of a NandFlash into the provided buffers.
 
Syntax / parameters
unsigned char RawNandFlash_ReadPage (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 read resides.
page unsigned short
  Number of the page to read inside the given block.
data void *
  Buffer where the data area will be stored.
spare void *
  Buffer where the spare area will be stored.
 
Return value unsigned char
   
Description
Reads the data and/or the spare areas of a page of a NandFlash into the provided buffers.
If a buffer pointer is 0, the corresponding area is not read. Returns 0 if the operation has been successful; otherwise returns 1.
 
Source
The documentation for this Member was generated from the following files:
  • RawNandFlash.c