Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Macros
MgmtTypes.cpp File Reference
#include <cstring>
#include <string>
#include <memory>
#include <cstdint>
#include <vector>
#include <cstdio>
#include <algorithm>
#include <jau/debug.hpp>
#include "BTIoctl.hpp"
#include "MgmtTypes.hpp"
#include "HCIIoctl.hpp"
#include "HCIComm.hpp"
#include "BTTypes1.hpp"
#include <inttypes.h>
#include <unistd.h>
Include dependency graph for MgmtTypes.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 MGMT_STATUS_ENUM(X)
 
#define MGMT_STATUS_CASE_TO_STRING(V)   case MgmtStatus::V: return #V;
 
#define MGMT_LINKKEYTYPE_ENUM(X)
 
#define MGMT_LINKKEYTYPE_TO_STRING(V)   case MgmtLinkKeyType::V: return #V;
 
#define MGMT_LTKTYPE_ENUM(X)
 
#define MGMT_LTKTYPE_TO_STRING(V)   case MgmtLTKType::V: return #V;
 
#define MGMT_CSRKTYPE_ENUM(X)
 
#define MGMT_CSRKTYPE_TO_STRING(V)   case MgmtCSRKType::V: return #V;
 
#define MGMT_OPCODE_ENUM(X)
 
#define MGMT_OPCODE_CASE_TO_STRING(V)   case MgmtCommand::Opcode::V: return #V;
 
#define MGMT_EV_OPCODE_ENUM(X)
 
#define MGMT_EV_OPCODE_CASE_TO_STRING(V)   case MgmtEvent::Opcode::V: return #V;
 

Macro Definition Documentation

◆ CASE2_TO_STRING

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

Definition at line 58 of file MgmtTypes.cpp.

◆ CASE_TO_STRING

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

Definition at line 57 of file MgmtTypes.cpp.

◆ MGMT_CSRKTYPE_ENUM

#define MGMT_CSRKTYPE_ENUM (   X)
Value:
X(UNAUTHENTICATED_LOCAL) \
X(UNAUTHENTICATED_REMOTE) \
X(AUTHENTICATED_LOCAL) \
X(AUTHENTICATED_REMOTE) \
X(NONE)

Definition at line 143 of file MgmtTypes.cpp.

◆ MGMT_CSRKTYPE_TO_STRING

#define MGMT_CSRKTYPE_TO_STRING (   V)    case MgmtCSRKType::V: return #V;

Definition at line 150 of file MgmtTypes.cpp.

◆ MGMT_EV_OPCODE_CASE_TO_STRING

#define MGMT_EV_OPCODE_CASE_TO_STRING (   V)    case MgmtEvent::Opcode::V: return #V;

Definition at line 313 of file MgmtTypes.cpp.

◆ MGMT_EV_OPCODE_ENUM

#define MGMT_EV_OPCODE_ENUM (   X)

Definition at line 264 of file MgmtTypes.cpp.

◆ MGMT_LINKKEYTYPE_ENUM

#define MGMT_LINKKEYTYPE_ENUM (   X)
Value:
X(COMBI) \
X(LOCAL_UNIT) \
X(REMOTE_UNIT) \
X(DBG_COMBI) \
X(UNAUTH_COMBI_P192) \
X(AUTH_COMBI_P192) \
X(CHANGED_COMBI) \
X(UNAUTH_COMBI_P256) \
X(AUTH_COMBI_P256) \
X(NONE)

Definition at line 93 of file MgmtTypes.cpp.

◆ MGMT_LINKKEYTYPE_TO_STRING

#define MGMT_LINKKEYTYPE_TO_STRING (   V)    case MgmtLinkKeyType::V: return #V;

Definition at line 105 of file MgmtTypes.cpp.

◆ MGMT_LTKTYPE_ENUM

#define MGMT_LTKTYPE_ENUM (   X)
Value:
X(UNAUTHENTICATED) \
X(AUTHENTICATED) \
X(UNAUTHENTICATED_P256) \
X(AUTHENTICATED_P256) \
X(DEBUG_P256) \
X(NONE)

Definition at line 115 of file MgmtTypes.cpp.

◆ MGMT_LTKTYPE_TO_STRING

#define MGMT_LTKTYPE_TO_STRING (   V)    case MgmtLTKType::V: return #V;

Definition at line 123 of file MgmtTypes.cpp.

◆ MGMT_OPCODE_CASE_TO_STRING

#define MGMT_OPCODE_CASE_TO_STRING (   V)    case MgmtCommand::Opcode::V: return #V;

Definition at line 250 of file MgmtTypes.cpp.

◆ MGMT_OPCODE_ENUM

#define MGMT_OPCODE_ENUM (   X)

Definition at line 165 of file MgmtTypes.cpp.

◆ MGMT_STATUS_CASE_TO_STRING

#define MGMT_STATUS_CASE_TO_STRING (   V)    case MgmtStatus::V: return #V;

Definition at line 83 of file MgmtTypes.cpp.

◆ MGMT_STATUS_ENUM

#define MGMT_STATUS_ENUM (   X)
Value:
X(SUCCESS) \
X(UNKNOWN_COMMAND) \
X(NOT_CONNECTED) \
X(FAILED) \
X(CONNECT_FAILED) \
X(AUTH_FAILED) \
X(NOT_PAIRED) \
X(NO_RESOURCES) \
X(TIMEOUT) \
X(ALREADY_CONNECTED) \
X(BUSY) \
X(REJECTED) \
X(NOT_SUPPORTED) \
X(INVALID_PARAMS) \
X(DISCONNECTED) \
X(NOT_POWERED) \
X(CANCELLED) \
X(INVALID_INDEX) \
X(RFKILLED) \
X(ALREADY_PAIRED) \
X(PERMISSION_DENIED)

Definition at line 60 of file MgmtTypes.cpp.