Implemented first Hangar-Service

Dependencies:   CalibrateMagneto QuaternionMath

Fork of SML2 by TobyRich GmbH

Revision:
5:b9f2f62a8f90
Parent:
0:943820483318
Child:
7:604a8369b801
--- a/I2CPeripheral.h	Fri Jan 23 13:00:46 2015 +0000
+++ b/I2CPeripheral.h	Thu Feb 12 17:17:35 2015 +0000
@@ -5,13 +5,14 @@
 
 class I2CPeripheral
 {
-private:
+protected:
     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);
+    void read_reg(const uint8_t reg, uint8_t* destination, const size_t nBytes = 1);
 
 public:
     I2CPeripheral(I2C &i2c, const uint8_t address);