add "LE Device Address" 0x1B to advertising data types
Fork of BLE_API by
Diff: ble/GapScanningParams.h
- Revision:
- 1048:efb29faf12fc
- Parent:
- 1042:21a86ac7f5b1
diff -r 2d66d38d9ac9 -r efb29faf12fc ble/GapScanningParams.h --- a/ble/GapScanningParams.h Mon Jan 11 08:51:27 2016 +0000 +++ b/ble/GapScanningParams.h Mon Jan 11 08:51:28 2016 +0000 @@ -19,10 +19,10 @@ class GapScanningParams { public: - static const unsigned SCAN_INTERVAL_MIN = 0x0004; /**< Minimum Scan interval in 625 us units, i.e. 2.5 ms. */ - static const unsigned SCAN_INTERVAL_MAX = 0x4000; /**< Maximum Scan interval in 625 us units, i.e. 10.24 s. */ - static const unsigned SCAN_WINDOW_MIN = 0x0004; /**< Minimum Scan window in 625 us units, i.e. 2.5 ms. */ - static const unsigned SCAN_WINDOW_MAX = 0x4000; /**< Maximum Scan window in 625 us units, i.e. 10.24 s. */ + static const unsigned SCAN_INTERVAL_MIN = 0x0004; /**< Minimum Scan interval in 625us units - 2.5ms. */ + static const unsigned SCAN_INTERVAL_MAX = 0x4000; /**< Maximum Scan interval in 625us units - 10.24s. */ + static const unsigned SCAN_WINDOW_MIN = 0x0004; /**< Minimum Scan window in 625us units - 2.5ms. */ + static const unsigned SCAN_WINDOW_MAX = 0x4000; /**< Maximum Scan window in 625us units - 10.24s. */ static const unsigned SCAN_TIMEOUT_MIN = 0x0001; /**< Minimum Scan timeout in seconds. */ static const unsigned SCAN_TIMEOUT_MAX = 0xFFFF; /**< Maximum Scan timeout in seconds. */ @@ -46,7 +46,7 @@ void setActiveScanning(bool activeScanning); public: - /* @Note: The following return durations in units of 0.625 ms */ + /* @Note: The following return durations in units of 0.625ms */ uint16_t getInterval(void) const {return _interval;} uint16_t getWindow(void) const {return _window; } @@ -54,13 +54,13 @@ bool getActiveScanning(void) const {return _activeScanning;} private: - uint16_t _interval; /**< Scan interval in units of 625us (between 2.5ms to 10.24s). */ - uint16_t _window; /**< Scan window in units of 625us (between 2.5ms to 10.24s). */ - uint16_t _timeout; /**< Scan timeout between 0x0001 and 0xFFFF in seconds, 0x0000 disables timeout. */ - bool _activeScanning; /**< obtain not only the advertising data from the peer device, but also their scanResponse if possible. */ + uint16_t _interval; /**< Scan interval in units of 625us (between 2.5ms and 10.24s). */ + uint16_t _window; /**< Scan window in units of 625us (between 2.5ms and 10.24s). */ + uint16_t _timeout; /**< Scan timeout between 0x0001 and 0xFFFF in seconds; 0x0000 disables timeout. */ + bool _activeScanning; /**< Obtain the peer device's advertising data and (if possible) scanResponse. */ private: - /* disallow copy constructor */ + /* Disallow copy constructor. */ GapScanningParams(const GapScanningParams &); GapScanningParams& operator =(const GapScanningParams &in); };