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.
Diff: sx1276/sx1276.h
- Revision:
- 42:72deced1a4c4
- Parent:
- 39:706c32eda7e7
- Child:
- 44:544add59b26d
--- a/sx1276/sx1276.h Mon May 08 15:39:42 2017 +0200
+++ b/sx1276/sx1276.h Mon May 08 22:52:31 2017 +0200
@@ -83,12 +83,6 @@
}RadioRegisters_t;
-typedef enum {
- RXTimeout,
- TXTimeout,
- RXTimeoutSyncWorld
-} Timeout_t;
-
/*!
* Type of the supported board. [SX1276MB1MAS / SX1276MB1LAS]
*/
@@ -486,8 +480,14 @@
//-------------------------------------------------------------------------
static const RadioRegisters_t RadioRegsInit[];
-private:
-
+
+ typedef enum {
+ RXTimeoutTimer,
+ TXTimeoutTimer,
+ RXTimeoutSyncWorldTimer
+ } TimeoutTimer_t;
+
+
protected:
/*!
* @brief Initializes the radio I/Os pins interface
@@ -559,9 +559,8 @@
/*
* The the Timeout for a given Timer.
*/
- virtual void SetTimeout(Timeout_t timer, int timeout_ms) = 0;
-
-
+ virtual void SetTimeout(TimeoutTimer_t timer, int timeout_ms) = 0;
+
protected:
/*!
@@ -606,17 +605,18 @@
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__