I made a fork of a generic library that was developed with support for RFM95 LoRa module that I found online. I Made a few changes and made it compatible with hardware limitations of the MAX32620FTHR and MAX32630FTHR module.
Dependents: MAX326xxFTHR_LoRa_RFM95 MAX326xxFTHR_LoRa_PingPong MAX326xxFTHR_RFM95_LoRa_PingPong MAX326xxFTHR_LoRa_RFM95_PingPong_Example ... more
Fork of SX1276GenericLib by
Diff: radio/radio.h
- Revision:
- 50:43f7160e869c
- Parent:
- 48:62af1e692f00
- Child:
- 51:aef3234bcb71
diff -r a41aafb5e12f -r 43f7160e869c radio/radio.h --- 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]