Basic MAC data interface for LoRa transceiver

Dependencies:   L2Frame crc

Dependents:   LoRaBaseStation LoRaTerminal

Revision:
8:4bda842f73d4
Parent:
7:bc08d51535b6
Child:
9:3074f6e08d8e
--- a/AlohaTransceiver.cpp	Sun Jul 17 05:15:47 2016 +0000
+++ b/AlohaTransceiver.cpp	Sun Jul 17 11:23:20 2016 +0000
@@ -216,6 +216,21 @@
     return SnrValue;
 }
 
+#if USE_MODEM_LORA == 1
+AlohaTransceiver::LoRaSettings_t *AlohaTransceiver::getSettings()
+{
+    return &Settings;
+}
+        
+#elif USE_MODEM_FSK == 1
+AlohaTransceiver::FskSettings_t *AlohaTransceiver::getSettings()
+{
+    return &Settings;
+}
+#else
+    #error "Please define a modem in the compiler options."
+#endif
+
 void OnTxDone( void )
 {
     Radio.Sleep( );