Sonder Design Team / Memory
Revision:
8:6af25b9563df
Parent:
2:5c70c0334ed0
Child:
10:96b5e7dcc91f
--- a/Memory.h	Thu Dec 22 22:16:11 2016 +0000
+++ b/Memory.h	Sun Apr 15 23:19:56 2018 +0000
@@ -4,14 +4,16 @@
 #include "mbed.h"
 
 #define dummy 1              //Set up a dummy byte to send to memory
-#define bufferSize 256      //The maximmum siz of data in the buffer
+#define bufferSize 256      //The maximmum siz of data in the buffer, 256?
 
 
  
 class Memory {
 public:
     Memory(PinName cs_mem);
-    int readData(SPI my_spi, char value [], int Address, int length);
+    
+    short bitDouble(int in);
+    int readData(SPI my_spi, short value [], int Address, int length);
     void sectorErase(SPI my_spi, long Address);
     int blockErase(SPI my_spi, int Address);
     int writeData(SPI my_spi, char buffer[], int address, int length);