Rtos API example

Embed: (wiki syntax)

« Back to documentation index

AddressType Struct Reference

AddressType Struct Reference

Container for the enumeration of BLE address types. More...

#include <BLEProtocol.h>

Public Types

enum  Type { PUBLIC = 0, RANDOM_STATIC, RANDOM_PRIVATE_RESOLVABLE, RANDOM_PRIVATE_NON_RESOLVABLE }
 

Address-types for Protocol addresses.

More...

Detailed Description

Container for the enumeration of BLE address types.

Note:
Adding a struct to encapsulate the contained enumeration prevents polluting the BLEProtocol namespace with the enumerated values. It also allows type-aliases for the enumeration while retaining the enumerated values. i.e. doing:
       typedef AddressType AliasedType;

would allow the use of AliasedType::PUBLIC in code.

Note:
see Bluetooth Standard version 4.2 [Vol 6, Part B] section 1.3 .

Definition at line 52 of file BLEProtocol.h.


Member Enumeration Documentation

enum Type

Address-types for Protocol addresses.

Enumerator:
PUBLIC 

Public device address.

RANDOM_STATIC 

Random static device address.

RANDOM_PRIVATE_RESOLVABLE 

Private resolvable device address.

RANDOM_PRIVATE_NON_RESOLVABLE 

Private non-resolvable device address.

Definition at line 56 of file BLEProtocol.h.