DW1000 UWB driver based on work of Matthias Grob & Manuel Stalder - ETH Zürich - 2015
Diff: DW1000.cpp
- Revision:
- 13:8718966cd81e
- Parent:
- 10:f1e3c04080d6
- Child:
- 14:02f0912e4ce4
--- a/DW1000.cpp Tue Mar 28 15:18:36 2017 +0000 +++ b/DW1000.cpp Tue Mar 28 15:49:42 2017 +0000 @@ -600,6 +600,13 @@ *preAmbleAcc_NoSat = readRegister16(DW1000_DRX_CONF,DWDRX_RXPAC_NOSAT); } +void getFullLEDMetrics(uint16_t *led_thresh, uint16_t *led_ppindx, uint16_t *led_ppampl) { + *led_thresh = readRegister16(DW1000_LDE_CTRL,DWLDE_LDE_THRESH); + *led_ppindx = readRegister16(DW1000_LDE_CTRL,DWLDE_LDE_PPINDX); + *led_ppampl = readRegister16(DW1000_LDE_CTRL,DWLDE_LDE_PPAMPL); + } + + #define SQR(x) ((float)(x) * (float)(x)) void DW1000::getRxSignalPower(float *direct, float *total)