<< Previous | Next >> | |
|
int flash_writesector( FlashDescriptor * fd, word sector, unsigned long buffer );
Description
- Writes the contents of
buffer
tosector
on the flash memory referenced byfd
.
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 write to.
- sector
- The destination sector.
- buffer
- The physical address of the source. TIP: A logical address can be changed to a physical address with the function
paddr()
.
Return value
0
: Success.Library
- FLASH.LIB
See also
- flash_erasechip, flash_erasesector, flash_gettype, flash_init, flash_read, flash_readsector, flash_sector2xwindow
Dynamic C Functions | << Previous | Next >> | rabbit.com |