r g / SX1276GenericLib-us915

Dependents:   DISCO-L072CZ-LRWAN1_LoRa_PingPong

Fork of SX1276GenericLib by Helmut Tschemernjak

Files at this revision

API Documentation at this revision

Comitter:
Helmut Tschemernjak
Date:
Thu May 18 18:34:54 2017 +0200
Parent:
52:4d304485eda0
Child:
54:0d8ea87fbab9
Commit message:
Spelling fix

Changed in this revision

radio/radio.h Show annotated file Show diff for this revision Revisions of this file
sx1276/sx1276-arduino-hal.cpp Show annotated file Show diff for this revision Revisions of this file
sx1276/sx1276-mbed-hal.cpp Show annotated file Show diff for this revision Revisions of this file
sx1276/sx1276.cpp Show annotated file Show diff for this revision Revisions of this file
sx1276/sx1276.h Show annotated file Show diff for this revision Revisions of this file
--- a/radio/radio.h	Thu May 18 11:07:46 2017 +0200
+++ b/radio/radio.h	Thu May 18 18:34:54 2017 +0200
@@ -18,8 +18,7 @@
 #include "mbed.h"
 
 
-/*
- !
+/*!
  * Radio driver internal state machine states definition
  */
 typedef enum RadioState
@@ -28,7 +27,7 @@
     RF_RX_RUNNING,
     RF_TX_RUNNING,
     RF_CAD,
-}RadioState_t;
+} RadioState_t;
 
 
 /*!
--- a/sx1276/sx1276-arduino-hal.cpp	Thu May 18 11:07:46 2017 +0200
+++ b/sx1276/sx1276-arduino-hal.cpp	Thu May 18 18:34:54 2017 +0200
@@ -352,7 +352,7 @@
             else
                 txTimeoutTimer.detach();
             break;
-        case RXTimeoutSyncWorldTimer:
+        case RXTimeoutSyncWordTimer:
             if (func)
                 rxTimeoutSyncWord.attach_us(callback(this, func), timeout_ms);
             else
--- a/sx1276/sx1276-mbed-hal.cpp	Thu May 18 11:07:46 2017 +0200
+++ b/sx1276/sx1276-mbed-hal.cpp	Thu May 18 18:34:54 2017 +0200
@@ -355,7 +355,7 @@
             else
                 txTimeoutTimer.detach();
             break;
-        case RXTimeoutSyncWorldTimer:
+        case RXTimeoutSyncWordTimer:
             if (func)
                 rxTimeoutSyncWord.attach_us(callback(this, func), timeout_ms);
             else
--- a/sx1276/sx1276.cpp	Thu May 18 11:07:46 2017 +0200
+++ b/sx1276/sx1276.cpp	Thu May 18 18:34:54 2017 +0200
@@ -882,7 +882,7 @@
 
         if( rxContinuous == false )
         {
-            SetTimeout(RXTimeoutSyncWorldTimer, &SX1276::OnTimeoutIrq, this->settings.Fsk.RxSingleTimeout * 1e3);
+            SetTimeout(RXTimeoutSyncWordTimer, &SX1276::OnTimeoutIrq, this->settings.Fsk.RxSingleTimeout * 1e3);
         }
     }
     else
@@ -1163,12 +1163,12 @@
             {
                 // Continuous mode restart Rx chain
                 Write( REG_RXCONFIG, Read( REG_RXCONFIG ) | RF_RXCONFIG_RESTARTRXWITHOUTPLLLOCK );
-                SetTimeout(RXTimeoutSyncWorldTimer, &SX1276::OnTimeoutIrq, this->settings.Fsk.RxSingleTimeout * 1e3);
+                SetTimeout(RXTimeoutSyncWordTimer, &SX1276::OnTimeoutIrq, this->settings.Fsk.RxSingleTimeout * 1e3);
             }
             else
             {
                 this->settings.State = RF_IDLE;
-                SetTimeout(RXTimeoutSyncWorldTimer, NULL);
+                SetTimeout(RXTimeoutSyncWordTimer, NULL);
             }
         }
         if( ( this->RadioEvents != NULL ) && ( this->RadioEvents->RxTimeout != NULL ) )
@@ -1239,14 +1239,14 @@
 
                         if( this->settings.Fsk.RxContinuous == false )
                         {
-                            SetTimeout(RXTimeoutSyncWorldTimer, NULL);
+                            SetTimeout(RXTimeoutSyncWordTimer, NULL);
                             this->settings.State = RF_IDLE;
                         }
                         else
                         {
                             // Continuous mode restart Rx chain
                             Write( REG_RXCONFIG, Read( REG_RXCONFIG ) | RF_RXCONFIG_RESTARTRXWITHOUTPLLLOCK );
-                            SetTimeout(RXTimeoutSyncWorldTimer, &SX1276::OnTimeoutIrq, this->settings.Fsk.RxSingleTimeout * 1e3);
+                            SetTimeout(RXTimeoutSyncWordTimer, &SX1276::OnTimeoutIrq, this->settings.Fsk.RxSingleTimeout * 1e3);
                         }
 
                         if( ( this->RadioEvents != NULL ) && ( this->RadioEvents->RxError != NULL ) )
@@ -1286,13 +1286,13 @@
                 if( this->settings.Fsk.RxContinuous == false )
                 {
                     this->settings.State = RF_IDLE;
-                    SetTimeout(RXTimeoutSyncWorldTimer, NULL);
+                    SetTimeout(RXTimeoutSyncWordTimer, NULL);
                 }
                 else
                 {
                     // Continuous mode restart Rx chain
                     Write( REG_RXCONFIG, Read( REG_RXCONFIG ) | RF_RXCONFIG_RESTARTRXWITHOUTPLLLOCK );
-                    SetTimeout(RXTimeoutSyncWorldTimer, &SX1276::OnTimeoutIrq, this->settings.Fsk.RxSingleTimeout * 1e3);
+                    SetTimeout(RXTimeoutSyncWordTimer, &SX1276::OnTimeoutIrq, this->settings.Fsk.RxSingleTimeout * 1e3);
 				}
 
                 if( ( this->RadioEvents != NULL ) && ( this->RadioEvents->RxDone != NULL ) )
@@ -1505,7 +1505,7 @@
 
                 if( ( this->settings.FskPacketHandler.PreambleDetected == true ) && ( this->settings.FskPacketHandler.SyncWordDetected == false ) )
                 {
-                    SetTimeout(RXTimeoutSyncWorldTimer, NULL);
+                    SetTimeout(RXTimeoutSyncWordTimer, NULL);
                     
                     this->settings.FskPacketHandler.SyncWordDetected = true;
 
--- a/sx1276/sx1276.h	Thu May 18 11:07:46 2017 +0200
+++ b/sx1276/sx1276.h	Thu May 18 18:34:54 2017 +0200
@@ -493,7 +493,7 @@
     typedef enum {
         RXTimeoutTimer,
         TXTimeoutTimer,
-        RXTimeoutSyncWorldTimer
+        RXTimeoutSyncWordTimer
     } TimeoutTimer_t;