Device to measure angle and get IMU measurements.

Dependencies:   mbed commands BLE_API nRF51822

Committer:
dkester
Date:
Mon Jun 01 15:41:01 2015 +0000
Revision:
3:a3e1a06c486d
Parent:
1:b44bd62c542f
Child:
4:2a5a08b14539
hoi;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dkester 0:1c5088dae6e1 1 #ifndef _STORAGE_H_
dkester 0:1c5088dae6e1 2 #define _STORAGE_H_
dkester 0:1c5088dae6e1 3
dkester 0:1c5088dae6e1 4 #include "mbed.h"
dkester 0:1c5088dae6e1 5
dkester 0:1c5088dae6e1 6 class Storage
dkester 0:1c5088dae6e1 7 {
dkester 0:1c5088dae6e1 8 static Storage* instance;
dkester 0:1c5088dae6e1 9 Storage();
dkester 0:1c5088dae6e1 10
dkester 0:1c5088dae6e1 11 public:
dkester 0:1c5088dae6e1 12
dkester 0:1c5088dae6e1 13 static Storage* getInstance();
dkester 3:a3e1a06c486d 14 void setup();
dkester 3:a3e1a06c486d 15 bool setWREN();
dkester 3:a3e1a06c486d 16 bool isBusy();
dkester 3:a3e1a06c486d 17 void endAction();
dkester 3:a3e1a06c486d 18
dkester 3:a3e1a06c486d 19 void pageProgram(int32_t addr);
dkester 3:a3e1a06c486d 20 void writeData(int8_t data);
dkester 3:a3e1a06c486d 21
dkester 3:a3e1a06c486d 22 void read(int32_t addr);
dkester 3:a3e1a06c486d 23 int8_t readData();
dkester 0:1c5088dae6e1 24
dkester 0:1c5088dae6e1 25 };
dkester 0:1c5088dae6e1 26
dkester 0:1c5088dae6e1 27 #endif /* _STORAGE_H_ */