mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Move advertising_handle_t into ble namespace.
parent
f83f32948a
commit
14b24d324c
|
@ -48,6 +48,12 @@ typedef uintptr_t connection_handle_t;
|
||||||
*/
|
*/
|
||||||
typedef uint16_t attribute_handle_t;
|
typedef uint16_t attribute_handle_t;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle of an advertising set.
|
||||||
|
*
|
||||||
|
* @note Range of valid handle is comprised between 0x00 and 0xEF.
|
||||||
|
*/
|
||||||
|
typedef uint8_t advertising_handle_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inclusive range of GATT attributes handles.
|
* Inclusive range of GATT attributes handles.
|
||||||
|
|
|
@ -1008,7 +1008,7 @@ public:
|
||||||
typedef CallChainOfFunctionPointersWithContext<const Gap *>
|
typedef CallChainOfFunctionPointersWithContext<const Gap *>
|
||||||
GapShutdownCallbackChain_t;
|
GapShutdownCallbackChain_t;
|
||||||
|
|
||||||
typedef uint8_t AdvHandle_t;
|
typedef ble::advertising_handle_t AdvHandle_t;
|
||||||
|
|
||||||
static const AdvHandle_t LEGACY_ADVERTISING_HANDLE = 0x00;
|
static const AdvHandle_t LEGACY_ADVERTISING_HANDLE = 0x00;
|
||||||
static const AdvHandle_t INVALID_ADVERTISING_HANDLE = 0xFF;
|
static const AdvHandle_t INVALID_ADVERTISING_HANDLE = 0xFF;
|
||||||
|
|
|
@ -546,13 +546,6 @@ struct connection_role_t : SafeEnum<connection_role_t, uint8_t> {
|
||||||
SafeEnum<connection_role_t, uint8_t>(raw_value) { }
|
SafeEnum<connection_role_t, uint8_t>(raw_value) { }
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Handle of an advertising set.
|
|
||||||
*
|
|
||||||
* @note Range of valid handle is comprised between 0x00 and 0xEF.
|
|
||||||
*/
|
|
||||||
typedef uint8_t advertising_handle_t;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Properties of an advertising event.
|
* Properties of an advertising event.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue