DW1000 UWB driver based on work of Matthias Grob & Manuel Stalder - ETH Zürich - 2015
Revision 12:da4b09aff6af, committed 2017-03-28
- Comitter:
- AndyA
- Date:
- Tue Mar 28 15:18:36 2017 +0000
- Parent:
- 10:f1e3c04080d6
- Child:
- 13:8718966cd81e
- Commit message:
- Added functions to read LED registers used for revised quality numbers
Changed in this revision
DW1000.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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)