Tobi's ubw test branch

Dependencies:   mavlink_bridge mbed

Fork of AIT_UWB_Range by Benjamin Hepp

Revision:
65:4c3bd79b57d2
Parent:
60:43be9228b3b9
--- a/DW1000/DW1000.h	Tue Jan 05 09:39:50 2016 +0000
+++ b/DW1000/DW1000.h	Tue Jan 05 09:54:33 2016 +0000
@@ -57,7 +57,7 @@
 
 class DW1000 {
     public:            
-        DW1000(SPI& spi, InterruptMultiplexer& irq_mp, PinName CS, PinName RESET = NC);              // constructor, uses SPI class
+        DW1000(SPI& spi, InterruptIn& irq, PinName CS, PinName RESET = NC);              // constructor, uses SPI class
 
         void setCallbacks(void (*callbackRX)(void), void (*callbackTX)(void));                  // setter for callback functions, automatically enables interrupt, if NULL is passed the coresponding interrupt gets disabled
         template<typename T>
@@ -102,8 +102,7 @@
         void resetAll();                                                                        // soft reset the entire DW1000 (some registers stay as they were see User Manual)
 
         // Interrupt
-        InterruptMultiplexer& irq_mp;
-        int irq_index;
+        InterruptIn& irq;
         FunctionPointer callbackRX;                                                             // function pointer to callback which is called when successfull RX took place
         FunctionPointer callbackTX;                                                             // function pointer to callback which is called when successfull TX took place
         void ISR();                                                                             // interrupt handling method (also calls according callback methods)