Device to measure angle and get IMU measurements.

Dependencies:   mbed commands BLE_API nRF51822

Storage.h

Committer:
dkester
Date:
2015-06-07
Revision:
6:75263c93daf7
Parent:
5:46947b447701

File content as of revision 6:75263c93daf7:

#ifndef _STORAGE_H_
#define _STORAGE_H_

#include "mbed.h"

class Storage
{

public:
    Storage();
    void setup();
    void setWREN();
    void setWRDI();
    
    int8_t getSR1();
    int8_t getSR2();
    
    void  clearSR();
    
    bool isBusy();
    void endAction();
    
    void pageProgram(int32_t addr);
    void writeData(int8_t data);
    
    void read(int32_t addr);
    int8_t readData();
    
    void bulkErase();
    void sectorErase(int32_t addr);
    void reset();

};

#endif /* _STORAGE_H_ */