Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Macros | Functions
BTTypes1.cpp File Reference
#include <cstring>
#include <string>
#include <memory>
#include <cstdint>
#include <vector>
#include <cstdio>
#include <algorithm>
#include <jau/debug.hpp>
#include "BTTypes1.hpp"
#include <inttypes.h>
#include <unistd.h>
Include dependency graph for BTTypes1.cpp:

Go to the source code of this file.

Macros

#define CASE_TO_STRING(V)   case V: return #V;
 
#define CASE2_TO_STRING(U, V)   case U::V: return #V;
 
#define SETTING_ENUM(X)
 

Functions

static std::string _getAdapterSettingBitStr (const AdapterSetting settingBit) noexcept
 

Macro Definition Documentation

◆ CASE2_TO_STRING

#define CASE2_TO_STRING (   U,
 
)    case U::V: return #V;

Definition at line 54 of file BTTypes1.cpp.

◆ CASE_TO_STRING

#define CASE_TO_STRING (   V)    case V: return #V;

Definition at line 53 of file BTTypes1.cpp.

◆ SETTING_ENUM

#define SETTING_ENUM (   X)
Value:
X(AdapterSetting,NONE) \
X(AdapterSetting,POWERED) \
X(AdapterSetting,CONNECTABLE) \
X(AdapterSetting,FAST_CONNECTABLE) \
X(AdapterSetting,DISCOVERABLE) \
X(AdapterSetting,BONDABLE) \
X(AdapterSetting,LINK_SECURITY) \
X(AdapterSetting,SSP) \
X(AdapterSetting,BREDR) \
X(AdapterSetting,ADVERTISING) \
X(AdapterSetting,SECURE_CONN) \
X(AdapterSetting,DEBUG_KEYS) \
X(AdapterSetting,PRIVACY) \
X(AdapterSetting,CONFIGURATION) \
X(AdapterSetting,STATIC_ADDRESS) \
X(AdapterSetting,PHY_CONFIGURATION)

Definition at line 56 of file BTTypes1.cpp.

Function Documentation

◆ _getAdapterSettingBitStr()

static std::string _getAdapterSettingBitStr ( const AdapterSetting  settingBit)
staticnoexcept

Definition at line 75 of file BTTypes1.cpp.

Here is the caller graph for this function:
direct_bt::AdapterSetting
AdapterSetting
Adapter Setting Bits.
Definition: BTTypes1.hpp:136