Implemented first Hangar-Service

Dependencies:   CalibrateMagneto QuaternionMath

Fork of SML2 by TobyRich GmbH

Revision:
0:943820483318
Child:
5:b9f2f62a8f90
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/I2CPeripheral.h	Tue Jan 13 11:23:01 2015 +0000
@@ -0,0 +1,20 @@
+#ifndef _H_I2CPERIPHERAL_H
+#define _H_I2CPERIPHERAL_H
+
+#include "mbed.h"
+
+class I2CPeripheral
+{
+private:
+    I2C* mBus;
+    uint8_t mAddress;
+    
+protected:
+    void write_reg(const uint8_t reg, const uint8_t val);
+    uint8_t read_reg(const uint8_t reg);
+
+public:
+    I2CPeripheral(I2C &i2c, const uint8_t address);
+};
+
+#endif//_H_I2CPERIPHERAL_H
\ No newline at end of file