<< Previous | Next >> | |
|
int sf_writeDeviceRAM( sf_device * dev, long buffer, int offset, int len, int flags );
Description
- Write data to the RAM buffer on the serial flash chip from a buffer in xmem.
Parameter
- dev
- Pointer to
sf_device
struct for initialized flash device.
- buffer
- Pointer to xmem data to write into the flash chip RAM.
- offset
- The address in the serial flash RAM to start writing at.
- len
- The number of bytes to write.
- flags
- Can be one of the following:
SF_BITSREVERSED
- Allows the data to be written to the flash in reverse bit order. This improves speed, and works fine as long as the data is read back out with this same flag.
Ignored on R4000 based cores, but reserved for legacy code support.
SF_RAMBANK1
(default) - Writes to the first RAM bank on the flash device
SF_RAMBANK2
- Writes to the alternate RAM bank on the flash deviceReturn Value
- 0: Success
-1: ErrorLibrary
- SFLASH.LIB
Dynamic C Functions | << Previous | Next >> | rabbit.com |