Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: DISCO-L072CZ-LRWAN1_LoRa_node EIoT_LoRa_node_1 EIoT_LoRa_node_2 EIoT_LoRa_node_3
Fork of SX1276GenericLib by
Diff: sx1276/sx1276.h
- Revision:
- 44:544add59b26d
- Parent:
- 42:72deced1a4c4
- Child:
- 50:43f7160e869c
diff -r 72deced1a4c4 -r 544add59b26d sx1276/sx1276.h
--- a/sx1276/sx1276.h Mon May 08 22:52:31 2017 +0200
+++ b/sx1276/sx1276.h Tue May 09 16:41:16 2017 +0200
@@ -556,10 +556,13 @@
*/
virtual void SetAntSw( uint8_t opMode ) = 0;
+ typedef void ( SX1276::*timeoutFuncPtr)( void );
+
+
/*
* The the Timeout for a given Timer.
*/
- virtual void SetTimeout(TimeoutTimer_t timer, int timeout_ms) = 0;
+ virtual void SetTimeout(TimeoutTimer_t timer, timeoutFuncPtr, int timeout_ms = 0) = 0;
protected:
@@ -605,18 +608,17 @@
virtual void OnDio5Irq( void );
/*!
+ * @brief Tx & Rx timeout timer callback
+ */
+ virtual void OnTimeoutIrq( void );
+
+ /*!
* Returns the known FSK bandwidth registers value
*
* \param [IN] bandwidth Bandwidth value in Hz
* \retval regValue Bandwidth register value.
*/
static uint8_t GetFskBandwidthRegValue( uint32_t bandwidth );
-
-public:
- /*!
- * @brief Tx & Rx timeout timer callback
- */
- virtual void OnTimeoutIrq( void );
};
#endif // __SX1276_H__
