test
Dependents: Telemetria_RX_SD_GPS_copy Telemetria_RX_SD_GPS Telemetria_TX Telemetria_TX ... more
Diff: sx1276/sx1276.h
- Revision:
- 44:544add59b26d
- Parent:
- 42:72deced1a4c4
- Child:
- 50:43f7160e869c
--- 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__