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:
- 54:0d8ea87fbab9
- Parent:
- 53:6d3adad59633
- Child:
- 59:38e56c85fa44
--- a/radio/radio.h Thu May 18 18:34:54 2017 +0200 +++ b/radio/radio.h Fri May 19 11:50:12 2017 +0200 @@ -199,10 +199,10 @@ * * @param [IN] events Structure containing the driver callback functions */ - virtual void Init( RadioEvents_t *events ) = 0; + virtual bool Init( RadioEvents_t *events ) = 0; /*! - * @brief Return current radio status + * @brief Return current radio status, returns true if a radios has been found. * * @param status Radio status. [RF_IDLE, RX_RUNNING, TX_RUNNING, CAD_RUNNING] */ @@ -375,6 +375,12 @@ * [0: continuous, others timeout] */ virtual void Rx( uint32_t timeout ) = 0; + + /*! + * @brief Check is radio receives a signal + */ + virtual bool RxSignalPending() = 0; + /*! * @brief Sets the radio in transmission mode for the given time