lib : https://developer.mbed.org/users/DimiterK/code/W25Q64FVSSIG/ I try a little change code.

Dependents:   hexi_flash_mem

Fork of W25Q64FVSSIG by Dimiter K

Files at this revision

API Documentation at this revision

Comitter:
i_am_kitsune
Date:
Fri Sep 08 05:51:40 2017 +0000
Parent:
0:b71060e03299
Commit message:
Hexiwear flash memory ; W25Q64FV; 20170908;

Changed in this revision

W25Q64FV.cpp Show annotated file Show diff for this revision Revisions of this file
W25Q64FV.h Show annotated file Show diff for this revision Revisions of this file
diff -r b71060e03299 -r 259668edf734 W25Q64FV.cpp
--- a/W25Q64FV.cpp	Sun Oct 09 23:05:55 2016 +0000
+++ b/W25Q64FV.cpp	Fri Sep 08 05:51:40 2017 +0000
@@ -30,6 +30,16 @@
     return id;
 }
 
+void W25Q64FV::W25Q64_readManufacturer(uint8_t* d) {
+  
+  cs -> write(0);
+  spi->write(CMD_MANU_ID);
+  for (uint8_t i =0; i <5; i++) {
+    d[i] = spi->write(0);
+  } 
+  cs -> write(1);
+}
+
 uint32_t W25Q64FV::JEDECId()
 {
     cs->write(0);
diff -r b71060e03299 -r 259668edf734 W25Q64FV.h
--- a/W25Q64FV.h	Sun Oct 09 23:05:55 2016 +0000
+++ b/W25Q64FV.h	Fri Sep 08 05:51:40 2017 +0000
@@ -58,6 +58,7 @@
     
     uint16_t Id();
     uint32_t JEDECId();
+    void W25Q64_readManufacturer(uint8_t* d); 
 
     // Read Status Register    
     // bit 0 BUSY 1=Write in progress