SX1261 and sx1262 common library

Dependents:   SX126xDevKit SX1262PingPong SX126X_TXonly SX126X_PingPong_Demo ... more

Fork of SX126xLib by Gregory Cristian

Revision:
6:1e2345700991
Parent:
5:e488e6f185f3
--- a/sx126x.h	Fri Mar 09 13:19:45 2018 +0000
+++ b/sx126x.h	Wed Jul 18 13:33:42 2018 +0000
@@ -47,6 +47,25 @@
 #define FREQ_STEP                                   0.95367431640625 // ( ( double )( XTAL_FREQ / ( double )FREQ_DIV ) )
 #define FREQ_ERR                                    0.47683715820312
 
+
+/*!
+ * \brief List of devices supported by this driver
+ */
+#define SX1261  0
+#define SX1262  1
+#define SX1268  2
+
+/*!
+ * \brief List of matching supported by the sx126x
+ */
+#define MATCHING_FREQ_915                           0
+#define MATCHING_FREQ_780                           1
+#define MATCHING_FREQ_490                           2
+#define MATCHING_FREQ_434                           3
+#define MATCHING_FREQ_280                           4
+#define MATCHING_FREQ_169                           5
+#define MATCHING_FREQ_868                           6
+
 /*!
  * \brief Compensation delay for SetAutoTx/Rx functions in 15.625 microseconds
  */
@@ -1197,7 +1216,7 @@
     /*!
      * \brief Returns the device type
      *
-     * \retval      1: SX1261, 0: sx1262     
+     * \retval      0: SX1261, 1: SX1262, 2: SX1268
      */
     virtual uint8_t GetDeviceType( void ) = 0;