BLE: Move advertising_handle_t into ble namespace.

pull/8738/head
Vincent Coubard 2018-11-08 13:26:49 +00:00
parent f83f32948a
commit 14b24d324c
3 changed files with 7 additions and 8 deletions

View File

@ -48,6 +48,12 @@ typedef uintptr_t connection_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.

View File

@ -1008,7 +1008,7 @@ public:
typedef CallChainOfFunctionPointersWithContext<const Gap *>
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 INVALID_ADVERTISING_HANDLE = 0xFF;

View File

@ -546,13 +546,6 @@ struct connection_role_t : SafeEnum<connection_role_t, uint8_t> {
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.
*/