type already defined in ble types

pull/8738/head
paul-szczepanek-arm 2018-11-11 21:02:25 +00:00 committed by Vincent Coubard
parent 4fe7d5ed90
commit 9529974572
1 changed files with 3 additions and 17 deletions

View File

@ -475,23 +475,6 @@ public:
ADV_POLICY_FILTER_ALL_REQS = 3, ADV_POLICY_FILTER_ALL_REQS = 3,
}; };
/**
* Scanning policy filter mode.
*
* @see Bluetooth Core Specification 4.2 (Vol. 6), Part B, Section 4.3.3.
*/
enum ScanningPolicyMode_t {
/**
* The whitelist is not used for scanning operations.
*/
SCAN_POLICY_IGNORE_WHITELIST = 0,
/**
* The whitelist is used to filter incoming advertising.
*/
SCAN_POLICY_FILTER_ALL_ADV = 1,
};
/** /**
* Connection initiation policy filter mode. * Connection initiation policy filter mode.
* *
@ -580,6 +563,9 @@ public:
*/ */
typedef ble::scanning_policy_mode_t ScanningPolicyMode_t; typedef ble::scanning_policy_mode_t ScanningPolicyMode_t;
static const uint8_t SCAN_POLICY_IGNORE_WHITELIST = ble::SCAN_POLICY_IGNORE_WHITELIST;
static const uint8_t SCAN_POLICY_FILTER_ALL_ADV = ble::SCAN_POLICY_FILTER_ALL_ADV;
/** /**
* Enumeration of BLE PHY * Enumeration of BLE PHY
*/ */