SX1276GenericLib to support sx1276 bassed LoRa modules, including HopeRF RFM95, Murata CMWX1ZZABZ and Semtech SX1276MB1MAS/SX1276MB1LAS modules

Dependents:   DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_USB_Rx ... more

Fork of SX1276Lib by Semtech

Revision:
50:43f7160e869c
Parent:
48:62af1e692f00
Child:
51:aef3234bcb71
--- a/radio/radio.h	Sun May 14 14:27:37 2017 +0000
+++ b/radio/radio.h	Tue May 16 17:51:21 2017 +0200
@@ -205,7 +205,7 @@
     /*!
      * @brief Return current radio status
      *
-     * @param status Radio status.[RF_IDLE, RF_RX_RUNNING, RF_TX_RUNNING]
+     * @param status Radio status. [RF_IDLE, RX_RUNNING, TX_RUNNING, CAD_RUNNING]
      */
     virtual RadioState GetStatus( void ) = 0; 
 
@@ -350,8 +350,10 @@
      *
      * @param [IN]: buffer     Buffer pointer
      * @param [IN]: size       Buffer size
+     * @param [IN]: buffer     Header pointer
+     * @param [IN]: size       Header size
      */
-    virtual void Send( uint8_t *buffer, uint8_t size ) = 0;
+    virtual void Send( uint8_t *buffer, uint8_t size, uint8_t *header = NULL, uint8_t hsize = 0) = 0;
 
     /*!
      * @brief Sets the radio in sleep mode
@@ -392,6 +394,13 @@
     virtual void SetTxContinuousWave( uint32_t freq, int8_t power, uint16_t time ) = 0;
 
     /*!
+     * @brief Returns the maximal transfer unit for a given modem
+     *
+     * @retval MTU size in bytes
+     */
+    virtual int16_t MaxMTUSize( RadioModems_t modem ) = 0;
+    
+    /*!
      * @brief Reads the current RSSI value
      *
      * @retval rssiValue Current RSSI value in [dBm]