<< Previous | Next >> | |
|
int nf_writePage( nf_device * dev, long buffer, long page );
Description
- Writes data to the specified NAND flash device and page from the specified buffer in xmem. Check for completion of the write operation using
nf_isBusyRBHW()
ornf_isBusyStatus()
.Parameters
- dev
- Pointer to an initialized
nf_device
structure
- buffer
- Physical address of the xmem data to be written
- page
- Specifies the zero-based number of a NAND flash page to be written, relative to the first "good" page.
Return value
0
: Success, or the first error result encountered
-1
: NAND flash device is busy
-2
: Block check time out error
-3
: Page is in a bad block
-4
: XMEM/root memory transfer error
-5
: Erase block or program page operation error.Library
- NFLASH.LIB (This function was introduced in Dynamic C 9.01)
See Also
- CalculateECC256, ChkCorrectECC256, xCalculateECC256, xChkCorrectECC256
Dynamic C Functions | << Previous | Next >> | rabbit.com |