Simple driver for DWM1000 modules.

Files at this revision

API Documentation at this revision

Comitter:
bhepp
Date:
Mon Apr 04 11:19:26 2016 +0000
Parent:
5:c34ebc7f650c
Commit message:
Removed automatic retransmission and added clearing sent flag before delayed transmission.

Changed in this revision

DW1000.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/DW1000.cpp	Thu Mar 31 15:36:39 2016 +0000
+++ b/DW1000.cpp	Mon Apr 04 11:19:26 2016 +0000
@@ -73,8 +73,6 @@
     if (irq != NULL) {
         irq->enable_irq();
     }
-
-    //startRX();
 }
 
 void DW1000::setCallbacks(void (*callbackRX)(void), void (*callbackTX)(void)) {
@@ -241,7 +239,6 @@
     
     stopTRX();                                                      // stop receiving
     writeRegister8(DW1000_SYS_CTRL, 0, 0x02);                       // trigger sending process by setting the TXSTRT bit
-//    startRX();                                                      // enable receiver again
 }
 
 void DW1000::sendDelayedFrame(uint8_t* message, uint16_t length, uint64_t TxTimestamp) {
@@ -264,7 +261,6 @@
 
     stopTRX();                                                      // stop receiving
     writeRegister8(DW1000_SYS_CTRL, 0, 0x02 | 0x04);                // trigger sending process by setting the TXSTRT and TXDLYS bit
-//    startRX();                                                      // enable receiver again
 }
 
 void DW1000::startRX() {