Based on SX1276Lib. Simplified and targeted for Modtronix inAir modules. All pins can now be specified to use interrupts or general purpose I/O pins.

Files at this revision

API Documentation at this revision

Comitter:
modtronix-com
Date:
Fri Aug 19 15:50:01 2016 +1000
Parent:
8:b1dfb4139657
Child:
10:0bf8f2dbefb7
Commit message:
Cleaned up includes

Changed in this revision

inair.cpp Show annotated file Show diff for this revision Revisions of this file
inair.h Show annotated file Show diff for this revision Revisions of this file
radio.cpp Show annotated file Show diff for this revision Revisions of this file
radio.h Show annotated file Show diff for this revision Revisions of this file
sx1276Regs-Fsk.h Show annotated file Show diff for this revision Revisions of this file
sx1276Regs-LoRa.h Show annotated file Show diff for this revision Revisions of this file
diff -r b1dfb4139657 -r 9a77e2c7c5e8 inair.cpp
--- a/inair.cpp	Mon Aug 15 14:57:43 2016 +1000
+++ b/inair.cpp	Fri Aug 19 15:50:01 2016 +1000
@@ -12,6 +12,7 @@
 
 Maintainers: Miguel Luis, Gregory Cristian and Nicolas Huguenin
 */
+#include "mbed.h"
 #include "inair.h"
 
 //MODTRONIX BEGIN /////////////////////////////////////////////////////////////
diff -r b1dfb4139657 -r 9a77e2c7c5e8 inair.h
--- a/inair.h	Mon Aug 15 14:57:43 2016 +1000
+++ b/inair.h	Fri Aug 19 15:50:01 2016 +1000
@@ -15,6 +15,7 @@
 #ifndef __SX1276_H__
 #define __SX1276_H__
 
+#include "inair_default_config.h"
 #include "radio.h"
 #include "sx1276Regs-Fsk.h"
 #include "sx1276Regs-LoRa.h"
diff -r b1dfb4139657 -r 9a77e2c7c5e8 radio.cpp
--- a/radio.cpp	Mon Aug 15 14:57:43 2016 +1000
+++ b/radio.cpp	Fri Aug 19 15:50:01 2016 +1000
@@ -12,6 +12,7 @@
 
 Maintainers: Miguel Luis, Gregory Cristian and Nicolas Huguenin
 */
+#include "mbed.h"
 #include "radio.h"
 
 Radio::Radio( void ( *txDone )( ), void ( *txTimeout ) ( ), void ( *rxDone ) ( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr ),
diff -r b1dfb4139657 -r 9a77e2c7c5e8 radio.h
--- a/radio.h	Mon Aug 15 14:57:43 2016 +1000
+++ b/radio.h	Fri Aug 19 15:50:01 2016 +1000
@@ -15,9 +15,6 @@
 #ifndef __RADIO_H__
 #define __RADIO_H__
 
-#include "mbed.h"
-#include "inair_default_config.h"
-
 
 /*!
  *    State of the radio:
diff -r b1dfb4139657 -r 9a77e2c7c5e8 sx1276Regs-Fsk.h
--- a/sx1276Regs-Fsk.h	Mon Aug 15 14:57:43 2016 +1000
+++ b/sx1276Regs-Fsk.h	Fri Aug 19 15:50:01 2016 +1000
@@ -15,6 +15,8 @@
 #ifndef __SX1276_REGS_FSK_H__
 #define __SX1276_REGS_FSK_H__
 
+#include "inair_default_config.h"
+
 /*!
  * ============================================================================
  * SX1276 Internal registers Address
diff -r b1dfb4139657 -r 9a77e2c7c5e8 sx1276Regs-LoRa.h
--- a/sx1276Regs-LoRa.h	Mon Aug 15 14:57:43 2016 +1000
+++ b/sx1276Regs-LoRa.h	Fri Aug 19 15:50:01 2016 +1000
@@ -15,6 +15,8 @@
 #ifndef __SX1276_REGS_LORA_H__
 #define __SX1276_REGS_LORA_H__
 
+#include "inair_default_config.h"
+
 /*!
  * ============================================================================
  * SX1276 Internal registers Address