RawNandFlash_CopyPage
Default mainpageat91libmemoriesnandflashRawNandFlash_CopyPage
Description Source Call Graph
RawNandFlash_CopyPage
Copy the data in a page of the NandFlash device to an other page on that same chip.
 
Syntax / parameters
unsigned char RawNandFlash_CopyPage (const struct RawNandFlash *raw, unsigned short sourceBlock, unsigned short sourcePage, unsigned short destBlock, unsigned short destPage)

Name Type Default Description
raw const struct RawNandFlash *
  Pointer to a RawNandFlash instance.
sourceBlock unsigned short
  Source block number.
sourcePage unsigned short
  Source page number inside the source block.
destBlock unsigned short
  Destination block number.
destPage unsigned short
  Destination page number inside the destination block.
 
Return value unsigned char
   
Description
Copy the data in a page of the NandFlash device to an other page on that same chip.
Both pages must have be even or odd; it is not possible to copy and even page to an odd page and vice-versa. Several retries are attempted if errors are encountered. Returns 0 if the operation is successful; otherwise returns NandCommon_ERROR_BADBLOCK indicating that the destination block is bad.
 
Source
The documentation for this Member was generated from the following files:
  • RawNandFlash.c