Device to measure angle and get IMU measurements.

Dependencies:   mbed commands BLE_API nRF51822

Committer:
dkester
Date:
Sun Jun 07 21:58:02 2015 +0000
Revision:
6:75263c93daf7
Parent:
5:46947b447701
Working 7 juni

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
dkester 0:1c5088dae6e1 9 public:
dkester 6:75263c93daf7 10 Storage();
dkester 3:a3e1a06c486d 11 void setup();
dkester 4:2a5a08b14539 12 void setWREN();
dkester 4:2a5a08b14539 13 void setWRDI();
dkester 6:75263c93daf7 14
dkester 4:2a5a08b14539 15 int8_t getSR1();
dkester 4:2a5a08b14539 16 int8_t getSR2();
dkester 6:75263c93daf7 17
dkester 4:2a5a08b14539 18 void clearSR();
dkester 6:75263c93daf7 19
dkester 3:a3e1a06c486d 20 bool isBusy();
dkester 3:a3e1a06c486d 21 void endAction();
dkester 3:a3e1a06c486d 22
dkester 3:a3e1a06c486d 23 void pageProgram(int32_t addr);
dkester 3:a3e1a06c486d 24 void writeData(int8_t data);
dkester 3:a3e1a06c486d 25
dkester 3:a3e1a06c486d 26 void read(int32_t addr);
dkester 3:a3e1a06c486d 27 int8_t readData();
dkester 4:2a5a08b14539 28
dkester 4:2a5a08b14539 29 void bulkErase();
dkester 5:46947b447701 30 void sectorErase(int32_t addr);
dkester 4:2a5a08b14539 31 void reset();
dkester 0:1c5088dae6e1 32
dkester 0:1c5088dae6e1 33 };
dkester 0:1c5088dae6e1 34
dkester 6:75263c93daf7 35 #endif /* _STORAGE_H_ */