Adding support for India ISM Band.

Fork of LoRaWAN-lib by Semtech

Revision:
4:06708c793508
Parent:
3:b9d87593a8ae
Child:
5:77f44e83b37d
--- a/LoRaMac.cpp	Mon Mar 14 09:09:54 2016 +0000
+++ b/LoRaMac.cpp	Thu Mar 31 16:05:20 2016 +0000
@@ -259,6 +259,58 @@
     LC2,
     LC3,
 };
+/************************************************************************************/
+/********                India Frequency Declaration Start                 **********/
+/********               Added by: Sachin Pukale | 31.03.2016               **********/
+/************************************************************************************/
+#elif defined( USE_BAND_865 )
+/*!
+ * Data rates table definition
+ */
+const uint8_t Datarates[]  = { 12, 11, 10,  9,  8,  7,  7, 50 };
+
+/*!
+ * Maximum payload with respect to the datarate index. Cannot operate with repeater.
+ */
+const uint8_t MaxPayloadOfDatarate[] = { 51, 51, 51, 115, 242, 242, 242, 242 };
+
+/*!
+ * Maximum payload with respect to the datarate index. Can operate with repeater.
+ */
+const uint8_t MaxPayloadOfDatarateRepeater[] = { 51, 51, 51, 115, 222, 222, 222, 222 };
+
+/*!
+ * Tx output powers table definition
+ */
+const int8_t TxPowers[]    = { 27, 20, 14, 11,  8,  5,  2 };        //Added by SP 31.03.2016
+
+/*!
+ * LoRaMac bands
+ */
+static Band_t Bands[LORA_MAX_NB_BANDS] =
+{
+    BAND0,
+ /*
+    BAND1,
+    BAND2,
+    BAND3,
+    BAND4,
+*/
+};
+
+/*!
+ * LoRaMAC channels
+ */
+static ChannelParams_t Channels[LORA_MAX_NB_CHANNELS] =
+{
+    LC1,
+    LC2,
+    LC3,
+};
+/************************************************************************************/
+/********              India Frequency Declaration End                     **********/
+/************************************************************************************/
+
 #elif defined( USE_BAND_868 )
 /*!
  * Data rates table definition