DW1000 UWB driver based on work of Matthias Grob & Manuel Stalder - ETH Zürich - 2015

Dependencies:   BurstSPI

Revision:
7:b13881dbb09d
Parent:
6:2c77afdf7367
Child:
8:0b408e77b701
diff -r 2c77afdf7367 -r b13881dbb09d DW1000.h
--- a/DW1000.h	Mon Apr 11 14:45:44 2016 +0000
+++ b/DW1000.h	Wed Apr 13 09:07:14 2016 +0000
@@ -4,6 +4,7 @@
 #define DW1000_H
 
 #include "mbed.h"
+#include "BurstSPI.h"
 
 // register addresses
 //      Mnemonic                    Address Bytes Description
@@ -591,7 +592,7 @@
     void ISR();                                                                             // interrupt handling method (also calls according callback methods)
 
     // SPI Inteface
-    SPI spi;                                                                                // SPI Bus
+    BurstSPI spi;                                                                                // SPI Bus
     DigitalOut cs;                                                                          // Slave selector for SPI-Bus (here explicitly needed to start and end SPI transactions also usable to wake up DW1000)
 
     uint8_t readRegister8(uint8_t reg, uint16_t subaddress);                                // expressive methods to read or write the number of bits written in the name