<< Previous | Next >> | |
|
int sf_readDeviceRAM( sf_device * dev, long buffer, int offset, int len, int flags );
Description
- Read data from the RAM buffer on the serial flash chip into an xmem buffer.
Parameters
- dev
- Pointer to
sf_device
struct for initialized flash device.
- buffer
- Address of an xmem buffer.
- offset
- The address in the serial flash RAM to start reading from.
- len
- The number of bytes to read.
- flags
- Can be one of the following:
SF_BITSREVERSED
- Reads the data in bit reversed order from the flash chip. This improves speed, but the data must have been also written in reversed order (see sf_XWriteRAM)
SF_RAMBANK1
(default) - Reads from the first RAM bank on the flash device
SF_RAMBANK2
- Reads from the alternate RAM bank on the flash device
Return Value
- 0: Success
-1: ErrorLibrary
- SFLASH.LIB
Dynamic C Functions | << Previous | Next >> | rabbit.com |