Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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)