MX25R6435F Library

Dependents:   Demo_MX25Rxx35F_Serial_NOR_Flash_Testbench mbed-lorawan-pulga mbed-lorawan-pulga-serial_rx mbed-lorawan-pulga-gps-added_shared

Fork of SPI_MX25R by alec cohen

Revision:
3:b6bb8d236251
Parent:
2:f72110475fec
--- a/SPI_MX25R.h	Thu Jul 23 17:11:27 2015 +0000
+++ b/SPI_MX25R.h	Wed Mar 28 13:17:02 2018 +0000
@@ -3,6 +3,10 @@
  
 #include "mbed.h"
  
+ /**
+ Page Defines, write read based on page size
+ */
+ #define MX25R_PAGES 0x7FFF // total memory size - Addresses 0x7FFFFF
 /**
  * Macronix Serial Flash Low Power Memories
  * SPI_MX25R Series SPI-Flash Memory
@@ -178,6 +182,8 @@
   uint8_t readFREAD(int addr) ; 
   uint8_t read8(int addr) ;
   void write8(int addr, uint8_t data) ;
+  // read sequential n bytes
+  void readNBytes(int addr, uint8_t *data, int nBytes);
   private:
  
 } ;