17 #ifndef MBED_GAP_SCANNING_PARAMS_H__ 18 #define MBED_GAP_SCANNING_PARAMS_H__ 111 uint16_t interval = SCAN_INTERVAL_MAX,
112 uint16_t window = SCAN_WINDOW_MAX,
113 uint16_t timeout = 0,
114 bool activeScanning =
false 206 return _activeScanning;
228 bool _activeScanning;
static const unsigned SCAN_INTERVAL_MIN
Minimum Scan interval in 625us units - 2.5ms.
uint16_t getInterval(void) const
Get the scan interval.
static const unsigned SCAN_TIMEOUT_MAX
Maximum Scan duration in seconds.
Parameters defining the scan process.
bool getActiveScanning(void) const
Check whether active scanning is set.
static const uint16_t UNIT_0_625_MS
Number of microseconds in 0.625 milliseconds.
static const unsigned SCAN_WINDOW_MIN
Minimum Scan window in 625us units - 2.5ms.
ble_error_t setInterval(uint16_t newIntervalInMS)
Update the scan interval.
static uint16_t MSEC_TO_SCAN_DURATION_UNITS(uint32_t durationInMillis)
Convert milliseconds to units of 0.625ms.
uint16_t getWindow(void) const
Get the scan window.
ble_error_t setWindow(uint16_t newWindowInMS)
Update the scan window.
static const unsigned SCAN_WINDOW_MAX
Maximum Scan window in 625us units - 10.24s.
GapScanningParams(uint16_t interval=SCAN_INTERVAL_MAX, uint16_t window=SCAN_WINDOW_MAX, uint16_t timeout=0, bool activeScanning=false)
Construct an instance of GapScanningParams.
uint16_t getTimeout(void) const
Get the scan timeout.
void setActiveScanning(bool activeScanning)
Update the active scanning flag.
static const unsigned SCAN_INTERVAL_MAX
Maximum Scan interval in 625us units - 10.24s.
static const unsigned SCAN_TIMEOUT_MIN
Minimum Scan duration in seconds.
ble_error_t setTimeout(uint16_t newTimeout)
Update the scan timeout.
ble_error_t
Error codes for the BLE API.