Self test boot program for testing icarus sensors

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_UARTConsole by Bluetooth Low Energy

Revision:
10:3a24c970db40
Child:
11:70359785c2a7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MPU9250Sensor.h	Tue Jan 27 13:25:37 2015 +0000
@@ -0,0 +1,28 @@
+#ifndef MBED_MPU9250_SENSOR_H
+#define MBED_MPU9250_SENSOR_H
+ 
+#include "mbed.h"
+
+#include "BaseSensor.h"
+
+#define WHO_AM_I 0x75
+
+#define MPU9250_READ_REGISTER=
+
+ 
+class MPU9250Sensor : public BaseSensor {
+public:
+    //SPI at 1MHz
+    MPU9250Sensor(SPI*,DigitalOut*);
+    //get sensor details from actual implementation
+    virtual char* getSimpleName();
+    virtual void getSensorDetails(sensor_t*);
+    //verify basic integrity of underlining hardware
+    virtual uint32_t verifyIntegrity(uint32_t*);
+private:  
+    SPI* spi; 
+    DigitalOut* cs;
+
+};
+ 
+#endif
\ No newline at end of file