Device to measure angle and get IMU measurements.

Dependencies:   mbed commands BLE_API nRF51822

Storage.h

Committer:
dkester
Date:
2015-06-01
Revision:
3:a3e1a06c486d
Parent:
1:b44bd62c542f
Child:
4:2a5a08b14539

File content as of revision 3:a3e1a06c486d:

#ifndef _STORAGE_H_
#define _STORAGE_H_

#include "mbed.h"

class Storage
{
    static Storage* instance;
    Storage();

public:

    static Storage* getInstance();
    void setup();
    bool setWREN();
    bool isBusy();
    void endAction();
    
    void pageProgram(int32_t addr);
    void writeData(int8_t data);
    
    void read(int32_t addr);
    int8_t readData();

};

#endif /* _STORAGE_H_ */