This is the DW1000 driver and our self developed distance measurement application based on it. We do this as a semester thesis at ETH Zürich under the Automatic Control Laboratory in the Department of electrical engineering.

Dependencies:   mbed

Revision:
28:a830131560e8
Parent:
26:a65c6f26c458
Child:
29:019ff388ed76
--- a/DW1000/DW1000.h	Fri Nov 28 07:44:36 2014 +0000
+++ b/DW1000/DW1000.h	Fri Nov 28 14:40:03 2014 +0000
@@ -54,7 +54,7 @@
 class DW1000 {
     public:            
         DW1000(PinName MOSI, PinName MISO, PinName SCLK, PinName CS, PinName IRQ);              // constructor, uses SPI class
-        void setCallbacks(void (*callbackRX)(int framelength), void (*callbackTX)());           // setter for callback function pointer fields
+        void setCallbacks(void (*callbackRX)(), void (*callbackTX)());                          // setter for callback function pointer fields
 
         // Device API
         uint32_t getDeviceID();                                                                 // gets the Device ID which should be 0xDECA0130 (good for testing SPI!)
@@ -79,7 +79,7 @@
 
         // Interrupt
         InterruptIn irq;                                                                        // Pin used to handle Events from DW1000 by an Interrupthandler
-        void (*callbackRX)(int framelength);                                                    // function pointer to callback which is called when successfull RX took place
+        void (*callbackRX)();                                                                   // function pointer to callback which is called when successfull RX took place
         void (*callbackTX)();                                                                   // function pointer to callback which is called when successfull TX took place
         void ISR();                                                                             // interrupt handling method (also calls according callback methods)
         uint16_t getFramelength();                                                              // to get the framelength of the received frame from the PHY header