Library to use 25LCxxx chips

Dependents:   loststone

Fork of 25LCxxx_SPI by Hendrik Lipka

Revision:
3:d9429070ea6f
Parent:
2:3a3404dbd3eb
Child:
4:0c31e878a076
--- a/Ser25lcxxx.h	Sat Feb 19 18:29:20 2011 +0000
+++ b/Ser25lcxxx.h	Mon Jan 14 04:26:13 2013 +0000
@@ -55,7 +55,7 @@
             @param len the number of bytes to read (must not exceed the end of memory)
             @return NULL if the adresses are out of range, the pointer to the data otherwise
         */
-        char* read(unsigned int startAdr, unsigned int len);
+        int* read(unsigned int startAdr, unsigned int len);
         
         /**
             writes the give buffer into the memory. This function handles dividing the write into 
@@ -64,7 +64,7 @@
             @param len the number of bytes to read (must not exceed the end of memory)
             @return false if the adresses are out of range
         */
-        bool write(unsigned int startAdr, unsigned int len, const char* data);
+        bool write(unsigned int startAdr, unsigned int len, int* data);
         
         /**
             fills the given page with 0xFF
@@ -78,7 +78,7 @@
         */
         void clearMem();
     private:
-        bool writePage(unsigned int startAdr, unsigned int len, const char* data);
+        bool writePage(unsigned int startAdr, unsigned int len, int* data);
         int readStatus();
         void waitForWrite();
         void enableWrite();