![]() |
Qt 6.x
The Qt SDK
|
#include <QtCore/private/qglobal_p.h>
#include <QtCore/qendian.h>
#include <sys/socket.h>
#include <QtBluetooth/QBluetoothUuid>
#include <QtCore/qtmetamacros.h>
Go to the source code of this file.
Classes | |
struct | bt_security |
struct | __attribute__ |
struct | sockaddr_l2 |
struct | sockaddr_rc |
struct | sockaddr_hci |
struct | hci_dev_req |
struct | hci_dev_list_req |
struct | hci_dev_stats |
struct | hci_dev_info |
struct | hci_conn_info |
struct | hci_conn_list_req |
struct | hci_filter |
struct | evt_cmd_complete |
struct | AclData |
struct | L2CapHeader |
struct | hci_command_hdr |
Namespaces | |
namespace | QBluezConst |
Macros | |
#define | ATTRIBUTE_CHANNEL_ID 4 |
#define | SIGNALING_CHANNEL_ID 5 |
#define | SECURITY_CHANNEL_ID 6 |
#define | BTPROTO_L2CAP 0 |
#define | BTPROTO_HCI 1 |
#define | BTPROTO_RFCOMM 3 |
#define | SOL_HCI 0 |
#define | SOL_L2CAP 6 |
#define | SOL_RFCOMM 18 |
#define | SOL_BLUETOOTH 274 |
#define | RFCOMM_LM 0x03 |
#define | RFCOMM_LM_AUTH 0x0002 |
#define | RFCOMM_LM_ENCRYPT 0x0004 |
#define | RFCOMM_LM_TRUSTED 0x0008 |
#define | RFCOMM_LM_SECURE 0x0020 |
#define | L2CAP_LM 0x03 |
#define | L2CAP_LM_AUTH 0x0002 |
#define | L2CAP_LM_ENCRYPT 0x0004 |
#define | L2CAP_LM_TRUSTED 0x0008 |
#define | L2CAP_LM_SECURE 0x0020 |
#define | BT_SECURITY 4 |
#define | BT_SECURITY_SDP 0 |
#define | BT_SECURITY_LOW 1 |
#define | BT_SECURITY_MEDIUM 2 |
#define | BT_SECURITY_HIGH 3 |
#define | BDADDR_LE_PUBLIC 0x01 |
#define | BDADDR_LE_RANDOM 0x02 |
#define | SCO_LINK 0x00 |
#define | ACL_LINK 0x01 |
#define | ESCO_LINK 0x02 |
#define | LE_LINK 0x80 |
#define | htobs(d) (d) |
#define | htobl(d) (d) |
#define | htobll(d) (d) |
#define | btohs(d) (d) |
#define | btohl(d) (d) |
#define | btohll(d) (d) |
#define | HCIGETCONNLIST _IOR('H', 212, int) |
#define | HCIGETDEVINFO _IOR('H', 211, int) |
#define | HCIGETDEVLIST _IOR('H', 210, int) |
#define | HCI_MAX_DEV 16 |
#define | HCI_DEV_NONE 0xffff |
#define | HCI_CHANNEL_CONTROL 0x3 |
#define | HCI_MAX_EVENT_SIZE 260 |
#define | HCI_FILTER 2 |
#define | HCI_COMMAND_PKT 0x01 |
#define | HCI_ACL_PKT 0x02 |
#define | HCI_EVENT_PKT 0x04 |
#define | HCI_VENDOR_PKT 0xff |
#define | HCI_FLT_TYPE_BITS 31 |
#define | HCI_FLT_EVENT_BITS 63 |
#define | HCI_EVENT_HDR_SIZE 2 |
#define | EVT_ENCRYPT_CHANGE_SIZE 4 |
#define | opCodePack(ogf, ocf) (quint16(((ocf) & 0x03ff)|((ogf) << 10))) |
#define | ogfFromOpCode(op) ((op) >> 10) |
#define | ocfFromOpCode(op) ((op) & 0x03ff) |
Typedefs | |
typedef QUuid::Id128Bytes | BluezUint128 |
Functions | |
template<typename T > | |
T | getBtData (const void *ptr) |
static quint16 | bt_get_le16 (const void *ptr) |
template<typename T > | |
void | putBtData (T src, void *dst) |
static void | hci_set_bit (int nr, void *addr) |
static void | hci_clear_bit (int nr, void *addr) |
static void | hci_filter_clear (struct hci_filter *f) |
static void | hci_filter_set_ptype (int t, struct hci_filter *f) |
static void | hci_filter_clear_ptype (int t, struct hci_filter *f) |
static void | hci_filter_set_event (int e, struct hci_filter *f) |
static void | hci_filter_clear_event (int e, struct hci_filter *f) |
static void | hci_filter_all_ptypes (struct hci_filter *f) |
static void | hci_filter_all_events (struct hci_filter *f) |
struct evt_cmd_complete | __attribute__ ((packed)) |
Variables | |
quint8 | ncmd |
quint16 | opcode |
struct AclData | __attribute__ |
quint8 | plen |
Q_NAMESPACE enum QBluezConst::OpCodeGroupField | QBluezConst::__attribute__ |
#define ACL_LINK 0x01 |
Definition at line 68 of file bluez_data_p.h.
#define ATTRIBUTE_CHANNEL_ID 4 |
Definition at line 26 of file bluez_data_p.h.
#define BDADDR_LE_PUBLIC 0x01 |
Definition at line 64 of file bluez_data_p.h.
#define BDADDR_LE_RANDOM 0x02 |
Definition at line 65 of file bluez_data_p.h.
#define BT_SECURITY 4 |
Definition at line 54 of file bluez_data_p.h.
#define BT_SECURITY_HIGH 3 |
Definition at line 62 of file bluez_data_p.h.
#define BT_SECURITY_LOW 1 |
Definition at line 60 of file bluez_data_p.h.
#define BT_SECURITY_MEDIUM 2 |
Definition at line 61 of file bluez_data_p.h.
#define BT_SECURITY_SDP 0 |
Definition at line 59 of file bluez_data_p.h.
Definition at line 78 of file bluez_data_p.h.
Definition at line 79 of file bluez_data_p.h.
Definition at line 77 of file bluez_data_p.h.
#define BTPROTO_HCI 1 |
Definition at line 31 of file bluez_data_p.h.
#define BTPROTO_L2CAP 0 |
Definition at line 30 of file bluez_data_p.h.
#define BTPROTO_RFCOMM 3 |
Definition at line 32 of file bluez_data_p.h.
#define ESCO_LINK 0x02 |
Definition at line 69 of file bluez_data_p.h.
#define EVT_ENCRYPT_CHANGE_SIZE 4 |
Definition at line 281 of file bluez_data_p.h.
#define HCI_ACL_PKT 0x02 |
Definition at line 152 of file bluez_data_p.h.
#define HCI_CHANNEL_CONTROL 0x3 |
Definition at line 143 of file bluez_data_p.h.
#define HCI_COMMAND_PKT 0x01 |
Definition at line 151 of file bluez_data_p.h.
#define HCI_DEV_NONE 0xffff |
Definition at line 141 of file bluez_data_p.h.
#define HCI_EVENT_HDR_SIZE 2 |
Definition at line 274 of file bluez_data_p.h.
#define HCI_EVENT_PKT 0x04 |
Definition at line 153 of file bluez_data_p.h.
#define HCI_FILTER 2 |
Definition at line 148 of file bluez_data_p.h.
#define HCI_FLT_EVENT_BITS 63 |
Definition at line 157 of file bluez_data_p.h.
#define HCI_FLT_TYPE_BITS 31 |
Definition at line 156 of file bluez_data_p.h.
#define HCI_MAX_DEV 16 |
Definition at line 140 of file bluez_data_p.h.
#define HCI_MAX_EVENT_SIZE 260 |
Definition at line 145 of file bluez_data_p.h.
#define HCI_VENDOR_PKT 0xff |
Definition at line 154 of file bluez_data_p.h.
#define HCIGETCONNLIST _IOR('H', 212, int) |
Definition at line 91 of file bluez_data_p.h.
#define HCIGETDEVINFO _IOR('H', 211, int) |
Definition at line 92 of file bluez_data_p.h.
#define HCIGETDEVLIST _IOR('H', 210, int) |
Definition at line 93 of file bluez_data_p.h.
Definition at line 75 of file bluez_data_p.h.
Definition at line 76 of file bluez_data_p.h.
Definition at line 74 of file bluez_data_p.h.
#define L2CAP_LM 0x03 |
Definition at line 48 of file bluez_data_p.h.
#define L2CAP_LM_AUTH 0x0002 |
Definition at line 49 of file bluez_data_p.h.
#define L2CAP_LM_ENCRYPT 0x0004 |
Definition at line 50 of file bluez_data_p.h.
#define L2CAP_LM_SECURE 0x0020 |
Definition at line 52 of file bluez_data_p.h.
#define L2CAP_LM_TRUSTED 0x0008 |
Definition at line 51 of file bluez_data_p.h.
#define LE_LINK 0x80 |
Definition at line 70 of file bluez_data_p.h.
#define ocfFromOpCode | ( | op | ) | ((op) & 0x03ff) |
Definition at line 390 of file bluez_data_p.h.
#define ogfFromOpCode | ( | op | ) | ((op) >> 10) |
Definition at line 389 of file bluez_data_p.h.
#define opCodePack | ( | ogf, | |
ocf | |||
) | (quint16(((ocf) & 0x03ff)|((ogf) << 10))) |
Definition at line 388 of file bluez_data_p.h.
#define RFCOMM_LM 0x03 |
Definition at line 41 of file bluez_data_p.h.
#define RFCOMM_LM_AUTH 0x0002 |
Definition at line 43 of file bluez_data_p.h.
#define RFCOMM_LM_ENCRYPT 0x0004 |
Definition at line 44 of file bluez_data_p.h.
#define RFCOMM_LM_SECURE 0x0020 |
Definition at line 46 of file bluez_data_p.h.
#define RFCOMM_LM_TRUSTED 0x0008 |
Definition at line 45 of file bluez_data_p.h.
#define SCO_LINK 0x00 |
Definition at line 67 of file bluez_data_p.h.
#define SECURITY_CHANNEL_ID 6 |
Definition at line 28 of file bluez_data_p.h.
#define SIGNALING_CHANNEL_ID 5 |
Definition at line 27 of file bluez_data_p.h.
#define SOL_BLUETOOTH 274 |
Definition at line 38 of file bluez_data_p.h.
#define SOL_HCI 0 |
Definition at line 34 of file bluez_data_p.h.
#define SOL_L2CAP 6 |
Definition at line 35 of file bluez_data_p.h.
#define SOL_RFCOMM 18 |
Definition at line 36 of file bluez_data_p.h.
typedef QUuid::Id128Bytes BluezUint128 |
Definition at line 96 of file bluez_data_p.h.
struct evt_cmd_complete __attribute__ | ( | (packed) | ) |
Definition at line 128 of file bluez_data_p.h.
References ptr().
Referenced by dumpErrorInformation(), parseReadByTypeCharDiscovery(), and parseReadByTypeIncludeDiscovery().
|
inline |
Definition at line 123 of file bluez_data_p.h.
References ptr().
Definition at line 237 of file bluez_data_p.h.
Referenced by hci_filter_clear_event(), and hci_filter_clear_ptype().
|
inlinestatic |
Definition at line 265 of file bluez_data_p.h.
Referenced by HciManager::monitorAclPackets().
|
inlinestatic |
Definition at line 261 of file bluez_data_p.h.
|
inlinestatic |
Definition at line 241 of file bluez_data_p.h.
Referenced by HciManager::stopEvents().
|
inlinestatic |
Definition at line 257 of file bluez_data_p.h.
References e, hci_clear_bit(), and HCI_FLT_EVENT_BITS.
|
inlinestatic |
Definition at line 249 of file bluez_data_p.h.
References hci_clear_bit(), HCI_FLT_TYPE_BITS, and HCI_VENDOR_PKT.
|
inlinestatic |
Definition at line 253 of file bluez_data_p.h.
References e, HCI_FLT_EVENT_BITS, and hci_set_bit().
Referenced by HciManager::monitorEvent().
|
inlinestatic |
Definition at line 245 of file bluez_data_p.h.
References HCI_FLT_TYPE_BITS, hci_set_bit(), and HCI_VENDOR_PKT.
Referenced by HciManager::monitorAclPackets(), and HciManager::monitorEvent().
Definition at line 233 of file bluez_data_p.h.
Referenced by hci_filter_set_event(), and hci_filter_set_ptype().
Definition at line 133 of file bluez_data_p.h.
References qToLittleEndian().
Referenced by LeCmacCalculator::createFullMessage(), putDataAndIncrement(), putDataAndIncrement(), QLowEnergyControllerPrivateBluez::readCharacteristic(), and QLowEnergyControllerPrivateBluez::readDescriptor().
struct AclData __attribute__ |
quint8 ncmd |
Definition at line 0 of file bluez_data_p.h.
quint16 opcode |
Definition at line 1 of file bluez_data_p.h.
Referenced by QOpenGLFunctions_1_0::glLogicOp(), QOpenGLFunctions_1_1::glLogicOp(), QOpenGLFunctions_1_2::glLogicOp(), QOpenGLFunctions_1_3::glLogicOp(), QOpenGLFunctions_1_4::glLogicOp(), QOpenGLFunctions_1_5::glLogicOp(), QOpenGLFunctions_2_0::glLogicOp(), QOpenGLFunctions_2_1::glLogicOp(), QOpenGLFunctions_3_0::glLogicOp(), QOpenGLFunctions_3_1::glLogicOp(), QOpenGLFunctions_3_2_Compatibility::glLogicOp(), QOpenGLFunctions_3_2_Core::glLogicOp(), QOpenGLFunctions_3_3_Compatibility::glLogicOp(), QOpenGLFunctions_3_3_Core::glLogicOp(), QOpenGLFunctions_4_0_Compatibility::glLogicOp(), QOpenGLFunctions_4_0_Core::glLogicOp(), QOpenGLFunctions_4_1_Compatibility::glLogicOp(), QOpenGLFunctions_4_1_Core::glLogicOp(), QOpenGLFunctions_4_2_Compatibility::glLogicOp(), QOpenGLFunctions_4_2_Core::glLogicOp(), QOpenGLFunctions_4_3_Compatibility::glLogicOp(), QOpenGLFunctions_4_3_Core::glLogicOp(), QOpenGLFunctions_4_4_Compatibility::glLogicOp(), QOpenGLFunctions_4_4_Core::glLogicOp(), QOpenGLFunctions_4_5_Compatibility::glLogicOp(), QOpenGLFunctions_4_5_Core::glLogicOp(), isValidNumerusRules(), and numerusHelper().
quint8 plen |
Definition at line 1 of file bluez_data_p.h.