Mbed OS Reference
Loading...
Searching...
No Matches
adv_data_type_t Struct Reference

#include <AdvertisingDataTypes.h>

Inheritance diagram for adv_data_type_t:
SafeEnum< adv_data_type_t, uint8_t >

Public Types

enum  type {
  FLAGS = 0x01 , INCOMPLETE_LIST_16BIT_SERVICE_IDS = 0x02 , COMPLETE_LIST_16BIT_SERVICE_IDS = 0x03 , INCOMPLETE_LIST_32BIT_SERVICE_IDS = 0x04 ,
  COMPLETE_LIST_32BIT_SERVICE_IDS = 0x05 , INCOMPLETE_LIST_128BIT_SERVICE_IDS = 0x06 , COMPLETE_LIST_128BIT_SERVICE_IDS = 0x07 , SHORTENED_LOCAL_NAME = 0x08 ,
  COMPLETE_LOCAL_NAME = 0x09 , TX_POWER_LEVEL = 0x0A , DEVICE_ID = 0x10 , SLAVE_CONNECTION_INTERVAL_RANGE = 0x12 ,
  LIST_16BIT_SOLICITATION_IDS = 0x14 , LIST_128BIT_SOLICITATION_IDS = 0x15 , SERVICE_DATA = 0x16 , SERVICE_DATA_16BIT_ID = 0x16 ,
  SERVICE_DATA_128BIT_ID = 0x21 , APPEARANCE = 0x19 , ADVERTISING_INTERVAL = 0x1A , MANUFACTURER_SPECIFIC_DATA = 0xFF
}
 struct scoped enum wrapped by the class More...
 
typedef uint8_t representation_t
 Type of the representation. More...
 

Public Member Functions

 adv_data_type_t (type value)
 Construct a new instance of adv_data_type_t. More...
 
uint8_t value () const
 Explicit access to the inner value of the SafeEnum instance. More...
 
const uint8_t * storage () const
 Return a pointer to the inner storage. More...
 

Detailed Description

List of standard Advertising Data types.

These AD types are used to describe the capabilities of the peripheral and are inserted inside the advertising or scan response payloads.

Source

Definition at line 44 of file AdvertisingDataTypes.h.

Member Typedef Documentation

◆ representation_t

typedef uint8_t representation_t
inherited

Type of the representation.

Definition at line 115 of file common/SafeEnum.h.

Member Enumeration Documentation

◆ type

enum type

struct scoped enum wrapped by the class

Enumerator
FLAGS 

Flags, refer to AdvertisingData::Flags_t.

INCOMPLETE_LIST_16BIT_SERVICE_IDS 

Incomplete list of 16-bit Service IDs.

COMPLETE_LIST_16BIT_SERVICE_IDS 

Complete list of 16-bit Service IDs.

INCOMPLETE_LIST_32BIT_SERVICE_IDS 

Incomplete list of 32-bit Service IDs (not relevant for Bluetooth 4.0).

COMPLETE_LIST_32BIT_SERVICE_IDS 

Complete list of 32-bit Service IDs (not relevant for Bluetooth 4.0).

INCOMPLETE_LIST_128BIT_SERVICE_IDS 

Incomplete list of 128-bit Service IDs.

COMPLETE_LIST_128BIT_SERVICE_IDS 

Complete list of 128-bit Service IDs.

SHORTENED_LOCAL_NAME 

Shortened Local Name.

COMPLETE_LOCAL_NAME 

Complete Local Name.

TX_POWER_LEVEL 

TX Power Level (in dBm).

DEVICE_ID 

Device ID.

SLAVE_CONNECTION_INTERVAL_RANGE 

Slave Connection Interval Range.

LIST_16BIT_SOLICITATION_IDS 

List of 128-bit service UUIDs the device is looking for.

LIST_128BIT_SOLICITATION_IDS 

List of 128-bit service UUIDs the device is looking for.

SERVICE_DATA 

Service Data.

SERVICE_DATA_16BIT_ID 

Service Data.

SERVICE_DATA_128BIT_ID 

Service Data.

APPEARANCE 

Appearance, refer to AdvertisingData::Appearance_t.

ADVERTISING_INTERVAL 

Advertising Interval.

MANUFACTURER_SPECIFIC_DATA 

Manufacturer Specific Data.

Definition at line 46 of file AdvertisingDataTypes.h.

Constructor & Destructor Documentation

◆ adv_data_type_t()

adv_data_type_t ( type  value)

Construct a new instance of adv_data_type_t.

Definition at line 151 of file AdvertisingDataTypes.h.

Member Function Documentation

◆ value()

uint8_t value ( ) const
inherited

Explicit access to the inner value of the SafeEnum instance.

Definition at line 204 of file common/SafeEnum.h.

◆ storage()

const uint8_t * storage ( ) const
inherited

Return a pointer to the inner storage.

Definition at line 211 of file common/SafeEnum.h.