pabigot  0.1.1
C++ support classes
Data Structures | Namespaces | Enumerations | Variables
gap.hpp File Reference

Bluetooth Low Energy General Access Profile support. More...

#include <pabigot/ble.hpp>
#include <pabigot/byteorder.hpp>

Go to the source code of this file.

Data Structures

class  pabigot::ble::gap::adv_data
 Infrastructure to fill in Advertising and Scan Response Data. More...
 
class  pabigot::ble::gap::adv_data::store_helper
 RAII helper to avoid overruns and to back-fill lengths. More...
 

Namespaces

 pabigot
 Root for all pabigot namespaces.
 
 pabigot::ble
 Various helpers for Bluetooth Low Energy activities.
 
 pabigot::ble::gap
 Bluetooth Low Energy General Access Profile material.
 

Enumerations

enum  pabigot::ble::gap::pdu_type_e : uint8_t {
  PT_ADV_IND = 0x00, PT_ADV_DIRECT_IND = 0x01, PT_ADV_NONCONN_IND = 0x02, PT_SCAN_REQ = 0x03,
  PT_SCAN_RESP = 0x04, PT_CONNECT_IND = 0x05, PT_ADV_SCAN_IND = 0x06, PT_ADV_EXT_IND = 0x07,
  PT_AUX_CONNECT_RSP = 0x08
}
 Advertising PDU type. More...
 
enum  pabigot::ble::gap::adv_event_type_e : uint8_t {
  ET_ADV_IND = 0x00, ET_ADV_DIRECT_IND = 0x01, ET_ADV_SCAN_IND = 0x02, ET_ADV_NONCONN_IND = 0x03,
  ET_SCAN_RSP = 0x04, pabigot::ble::gap::ET_INVALID = 0x80
}
 Advertising Event Type. More...
 
enum  pabigot::ble::gap::flags_data_type_e : uint8_t {
  FDT_LE_LIMITED = 0x01, FDT_LE_GENERAL = 0x02, FDT_BREDR_NOTSUP = 0x04, FDT_BREDRLE_CTRL = 0x08,
  FDT_BREDRLE_HOST = 0x10, pabigot::ble::gap::FDT_LE_NON_DISCOVERABLE = FDT_BREDR_NOTSUP, pabigot::ble::gap::FDT_LE_LIMITED_DISCOVERABLE = FDT_BREDR_NOTSUP | FDT_LE_LIMITED, pabigot::ble::gap::FDT_LE_GENERAL_DISCOVERABLE = FDT_BREDR_NOTSUP | FDT_LE_GENERAL
}
 Bits and values for DT_FLAGS. More...
 
enum  pabigot::ble::gap::data_type_e : uint8_t {
  pabigot::ble::gap::DT_FLAGS = 0x01, pabigot::ble::gap::DT_UUID16_INCOMPLETE = 0x02, pabigot::ble::gap::DT_UUID16_COMPLETE = 0x03, pabigot::ble::gap::DT_UUID32_INCOMPLETE = 0x04,
  pabigot::ble::gap::DT_UUID32_COMPLETE = 0x05, pabigot::ble::gap::DT_UUID128_INCOMPLETE = 0x06, pabigot::ble::gap::DT_UUID128_COMPLETE = 0x07, pabigot::ble::gap::DT_SHORTENED_LOCAL_NAME = 0x08,
  pabigot::ble::gap::DT_COMPLETE_LOCAL_NAME = 0x09, pabigot::ble::gap::DT_TX_POWER_LEVEL = 0x0A, DT_CLASS_OF_DEVICE = 0x0D, DT_SIMPLE_PAIRING_HASH_C192 = 0x0E,
  DT_SIMPLE_PAIRING_RANDOMIZER_R192 = 0x0F, DT_DEVICE_ID = 0x10, DT_SECURITY_MANAGER_OOB_FLAGS = 0x11, pabigot::ble::gap::DT_SLAVE_CONNECTION_INTERVAL_RANGE = 0x12,
  pabigot::ble::gap::DT_SERVICE_SOLICITATION_UUID16 = 0x14, pabigot::ble::gap::DT_SERVICE_SOLICITATION_UUID128 = 0x15, pabigot::ble::gap::DT_SERVICE_DATA_UUID16 = 0x16, DT_PUBLIC_TARGET_ADDRESS = 0x17,
  DT_RANDOM_TARGET_ADDRESS = 0x18, DT_APPEARANCE = 0x19, pabigot::ble::gap::DT_ADVERTISING_INTERVAL = 0x1A, DT_LE_BLUETOOTH_DEVICE_ADDR = 0x1B,
  DT_LE_ROLE = 0x1C, DT_SIMPLE_PAIRING_HASH_C256 = 0x1D, DT_SIMPLE_PAIRING_RANDOMIZER_R256 = 0x1E, pabigot::ble::gap::DT_SERVICE_SOLICITATION_UUID32 = 0x1F,
  pabigot::ble::gap::DT_SERVICE_DATA_UUID32 = 0x20, pabigot::ble::gap::DT_SERVICE_DATA_UUID128 = 0x21, DT_LE_SECURE_CONN_CONFIRM_VALUE = 0x22, DT_LE_SECURE_CONN_RANDOM_VALUE = 0x23,
  DT_URI = 0x24, DT_INDOOR_POSITIONING = 0x25, DT_TRANSPORT_DISCOVERY_DATA = 0x26, DT_LE_SUPPORTED_FEATURES = 0x27,
  DT_CHANNEL_MAP_UPDATE_INDICATION = 0x28, DT_PB_ADV = 0x29, DT_MESH_MESSAGE = 0x2A, DT_MESH_BEACON = 0x2B,
  DT_3D_INFORMATION_DATA = 0x3D, pabigot::ble::gap::DT_MANUFACTURER_SPECIFIC_DATA = 0xFF
}
 GAP assigned numbers for data type values. More...
 

Variables

static constexpr size_t pabigot::ble::gap::ASR_DATA_SIZE {31}
 Number of octets available for a standard advertising or scan response data packet.
 

Detailed Description

Bluetooth Low Energy General Access Profile support.