![]() |
|
| << 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 fdmust have already been initialized withflash_initbefore calling this function. Seeflash_initdescription for further restrictions.Parameters
- fd
- The
FlashDescriptorof 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 |