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.
Dependents: DISCO-L072CZ-LRWAN1_LoRa_PingPong
Fork of SX1276GenericLib by
Revision 53:6d3adad59633, committed 2017-05-18
- 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
--- 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;
