BNO055 Library with interrupt

Dependents:   BLE_LoopbackUART_with_BNO055

Fork of BNO055 by Dave Turner

Revision:
8:303717d8776c
Parent:
7:cd181d3f2858
Child:
9:f43b1aa99e08
--- a/BNO055.h	Tue Jun 21 18:12:29 2016 +0000
+++ b/BNO055.h	Thu Jun 23 22:28:41 2016 +0000
@@ -115,6 +115,8 @@
 
 /* Page 1 registers */
 #define BNO055_UNIQUE_ID_ADDR               0x50
+#define BNO055_INT_MASK_ADDR                0X0F
+#define BNO055_INT_EN_ADDR                  0X10
 
 //Definitions for unit selection
 #define MPERSPERS   0x00
@@ -231,9 +233,11 @@
 /** Write the contents of the calibration array into the registers **/    
     void write_calibration_data(void);
     
-/** Read the interrupt status register and store the result in the intr variable **/
-    void get_intr(void);
+/** Initialize the interrupt and reads in the intr variable **/
+    void initIntr();
     char intr;
+/** Reset the interrupt  **/
+    void resetIntr();
     
 /** Structures containing 3-axis data for acceleration, rate of turn and magnetic field.
     x,y,z are the scale floating point values and