<< Previous | Next >>

sf_readPage

int sf_readPage( sf_device * dev, int bank, long page );

Description

Replaces sf_pageToRAM().

Command the serial flash to copy from one of its flash pages to one of its RAM buffers.

Parameters

dev
Pointer to sf_device struct for initialized flash device.

bank
Which RAM bank to write the data to. For Atmel 45DBxxx devices, this can be 1 or 2.

page
The page to read from.

Return Value

 0: Success
-1: Error

Library

SFLASH.LIB


Dynamic C Functions << Previous | Next >> rabbit.com