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: Elmo-Terminal LoRaWAN-test-app Elmo-Terminal-App LoRaWAN_Semtech_stack ... more
Diff: sx1272/sx1272.h
- Revision:
- 9:f53b11725565
- Parent:
- 8:ead3f4cc5923
- Child:
- 11:3133174407a2
diff -r ead3f4cc5923 -r f53b11725565 sx1272/sx1272.h
--- a/sx1272/sx1272.h Wed Dec 16 14:25:04 2015 +0000
+++ b/sx1272/sx1272.h Tue Mar 15 23:27:19 2016 +0000
@@ -20,7 +20,7 @@
#include "./registers/sx1272Regs-Fsk.h"
#include "./registers/sx1272Regs-LoRa.h"
#include "./typedefs/typedefs.h"
-
+#include "utilities.h"
/*!
* Radio wakeup time from SLEEP mode
*/
@@ -35,9 +35,9 @@
#define RX_BUFFER_SIZE 256
#define DEFAULT_TIMEOUT 200 //usec
+
#define RSSI_OFFSET -139.0
-
/*!
* Constant values need to compute the RSSI value
*/
@@ -75,7 +75,7 @@
bool isRadioActive;
- uint8_t *rxBuffer;
+ uint8_t *rxTxBuffer;
uint8_t previousOpMode;
@@ -188,7 +188,7 @@
* FSK : >= 2600 and <= 250000 Hz
* LoRa: N/A ( set to 0 )
* @param [IN] preambleLen Sets the Preamble length ( LoRa only )
- * FSK : N/A ( set to 0 )
+ * FSK : Number of bytes
* LoRa: Length in symbols ( the hardware adds 4 more symbols )
* @param [IN] symbTimeout Sets the RxSingle timeout value ( LoRa only )
* FSK : N/A ( set to 0 )
@@ -197,7 +197,11 @@
* @param [IN] payloadLen Sets payload length when fixed lenght is used
* @param [IN] crcOn Enables/Disables the CRC [0: OFF, 1: ON]
* @param [IN] freqHopOn Enables disables the intra-packet frequency hopping [0: OFF, 1: ON] (LoRa only)
+ * FSK : N/A ( set to 0 )
+ * LoRa: [0: OFF, 1: ON]
* @param [IN] hopPeriod Number of symbols bewteen each hop (LoRa only)
+ * FSK : N/A ( set to 0 )
+ * LoRa: Number of symbols
* @param [IN] iqInverted Inverts IQ signals ( LoRa only )
* FSK : N/A ( set to 0 )
* LoRa: [0: not inverted, 1: inverted]
@@ -232,10 +236,16 @@
* FSK : N/A ( set to 0 )
* LoRa: [1: 4/5, 2: 4/6, 3: 4/7, 4: 4/8]
* @param [IN] preambleLen Sets the preamble length
+ * FSK : Number of bytes
+ * LoRa: Length in symbols (the hardware adds 4 more symbols)
* @param [IN] fixLen Fixed length packets [0: variable, 1: fixed]
* @param [IN] crcOn Enables disables the CRC [0: OFF, 1: ON]
* @param [IN] freqHopOn Enables disables the intra-packet frequency hopping [0: OFF, 1: ON] (LoRa only)
+ * FSK : N/A ( set to 0 )
+ * LoRa: [0: OFF, 1: ON]
* @param [IN] hopPeriod Number of symbols bewteen each hop (LoRa only)
+ * FSK : N/A ( set to 0 )
+ * LoRa: Number of symbols
* @param [IN] iqInverted Inverts IQ signals ( LoRa only )
* FSK : N/A ( set to 0 )
* LoRa: [0: not inverted, 1: inverted]