SPI_25LC1024_read_array

Description

Read multiple bytes from a 25LC1024 serial EEPROM into an array

Definition

ubyte SPI_25LC1024_read_array(ubyte *ptr, uint addr, ubyte cnt)

Library

LIB/spi_25lc1024_lib.bas

Usage

On entry:
ptr is the address of an array to read into (from the EEPROM)

addr is the address into the EEPROM at which reading is to start

cnt is the number of bytes to be copied from the EEPROM into the array

On exit:
Return 0 if the read failed, return non 0 if the read succeaded