<< Previous | Next >> | |
|
int flash_readsector( FlashDescriptor * fd, word sector, unsigned long buffer );
Description
- Reads the contents of an entire sector of flash memory into a buffer.
NOTE fd
must have already been initialized withflash_init
before calling this function. Seeflash_init
description for further restrictions.Parameters
- fd
- The
FlashDescriptor
of the flash memory to read from.
- sector
- The source sector to read.
- buffer
- The physical address of the destination buffer. TIP: A logical address can be changed to a physical with the function
paddr()
.
Return value
0
: Success.Library
- FLASH.LIB
See also
- flash_erasechip, flash_erasesector, flash_gettype, flash_init, flash_read, flash_sector2xwindow, flash_writesector
Dynamic C Functions | << Previous | Next >> | rabbit.com |