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
Diff: SPI_MX25R.h
- Revision:
- 1:8403da5975cb
- Parent:
- 0:a16ad6f5c788
- Child:
- 2:f72110475fec
--- a/SPI_MX25R.h Wed Jul 08 20:59:40 2015 +0000 +++ b/SPI_MX25R.h Mon Jul 20 20:45:33 2015 +0000 @@ -22,9 +22,6 @@ SPI_MX25R(PinName mosi, PinName miso, PinName sclk, PinName cs) ; ~SPI_MX25R() ; - /* - * not all functions have been created yet. - */ SPI m_spi; DigitalOut m_cs ; @@ -41,15 +38,36 @@ /// Reset void reset(void) ; - -/// Enter High Performance mode - void hpmode(void) ; + +/// Program or Erase Suspend + void pgmersSuspend(void) ; + +/// Program or Erase Resume + void pgmersResume(void) ; + +/// Enter Deep Power Down + void deepPowerdown(void) ; + +/// Set Burst Length + void setBurstlength(void) ; + +/// Release from Read Enhanced Mode + void releaseReadenhaced(void) ; + +/// No Operation + void noOperation(void) ; + +/// Enter OTP Area + void enterSecureOTP(void) ; + +/// Exit OTP Area + void exitSecureOTP(void) ; + +/// Chip Erase + void chipErase(void) ; -/// Enter High Performance mode - void lpmode(void) ; - - /// Chip Erase - void chipErase(void) ; +/// Write Status and Configuration Reg 1 and 2 + void writeStatusreg(int addr) ; /** Page Program * @@ -94,9 +112,9 @@ * @returns uint32_t configuration register value */ uint32_t readConfig(void) ; - + uint8_t readSFDP(int addr) ; + uint8_t readFREAD(int addr) ; uint8_t read8(int addr) ; - uint32_t rd32(int addr) ; void write8(int addr, uint8_t data) ; private: