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

Dependencies:   BurstSPI

Revision:
12:da4b09aff6af
Parent:
10:f1e3c04080d6
Child:
13:8718966cd81e
diff -r f1e3c04080d6 -r da4b09aff6af DW1000.h
--- a/DW1000.h	Mon Aug 01 08:45:36 2016 +0000
+++ b/DW1000.h	Tue Mar 28 15:18:36 2017 +0000
@@ -318,6 +318,22 @@
     */
     void getFirstPath(uint16_t *fp_amp2,uint16_t *fp_amp3);
 
+
+    /** Get the LDE threshold value
+    * @return the Leading edge detection threshold register value
+    */
+    inline uint16_t getLDE_THRESH() {
+            return readRegister16(DW1000_LDE_CTRL,DWLDE_LDE_THRESH);
+    }
+
+
+    /** Get the LDE Peak path amplitude
+    * @return the Leading edge detection peak path amplitude value
+    */
+    inline uint16_t getLDE_PPAMPL() {
+            return readRegister16(DW1000_LDE_CTRL,DWLDE_LDE_PPAMPL);
+        }
+
 private:
     void resetAll();                                                                        // soft reset the entire DW1000 (some registers stay as they were see User Manual)