Android Hardware Abstraction Layer
Data Structures | Macros | Typedefs
bt_types.h File Reference
#include "data_types.h"

Go to the source code of this file.

Data Structures

struct  BT_HDR
 
struct  FLOW_SPEC
 
struct  tBT_UUID
 
struct  tBT_CONN_STATS
 
struct  tBLE_BD_ADDR
 

Macros

#define BT_EVT_MASK   0xFF00
 
#define BT_SUB_EVT_MASK   0x00FF
 
#define BT_EVT_TO_BTU_L2C_EVT   0x0900 /* L2CAP event */
 
#define BT_EVT_TO_BTU_HCI_EVT   0x1000 /* HCI Event */
 
#define BT_EVT_TO_BTU_HCI_BR_EDR_EVT   (0x0000 | BT_EVT_TO_BTU_HCI_EVT) /* event from BR/EDR controller */
 
#define BT_EVT_TO_BTU_HCI_AMP1_EVT   (0x0001 | BT_EVT_TO_BTU_HCI_EVT) /* event from local AMP 1 controller */
 
#define BT_EVT_TO_BTU_HCI_AMP2_EVT   (0x0002 | BT_EVT_TO_BTU_HCI_EVT) /* event from local AMP 2 controller */
 
#define BT_EVT_TO_BTU_HCI_AMP3_EVT   (0x0003 | BT_EVT_TO_BTU_HCI_EVT) /* event from local AMP 3 controller */
 
#define BT_EVT_TO_BTU_HCI_ACL   0x1100 /* ACL Data from HCI */
 
#define BT_EVT_TO_BTU_HCI_SCO   0x1200 /* SCO Data from HCI */
 
#define BT_EVT_TO_BTU_HCIT_ERR   0x1300 /* HCI Transport Error */
 
#define BT_EVT_TO_BTU_SP_EVT   0x1400 /* Serial Port Event */
 
#define BT_EVT_TO_BTU_SP_DATA   0x1500 /* Serial Port Data */
 
#define BT_EVT_TO_BTU_HCI_CMD   0x1600 /* HCI command from upper layer */
 
#define BT_EVT_TO_BTU_L2C_SEG_XMIT   0x1900 /* L2CAP segment(s) transmitted */
 
#define BT_EVT_PROXY_INCOMING_MSG   0x1A00 /* BlueStackTester event: incoming message from target */
 
#define BT_EVT_BTSIM   0x1B00 /* Insight BTSIM event */
 
#define BT_EVT_BTISE   0x1C00 /* Insight Script Engine event */
 
#define BT_EVT_TO_LM_HCI_CMD   0x2000 /* HCI Command */
 
#define BT_EVT_TO_LM_HCI_ACL   0x2100 /* HCI ACL Data */
 
#define BT_EVT_TO_LM_HCI_SCO   0x2200 /* HCI SCO Data */
 
#define BT_EVT_TO_LM_HCIT_ERR   0x2300 /* HCI Transport Error */
 
#define BT_EVT_TO_LM_LC_EVT   0x2400 /* LC event */
 
#define BT_EVT_TO_LM_LC_LMP   0x2500 /* LC Received LMP command frame */
 
#define BT_EVT_TO_LM_LC_ACL   0x2600 /* LC Received ACL data */
 
#define BT_EVT_TO_LM_LC_SCO   0x2700 /* LC Received SCO data (not used) */
 
#define BT_EVT_TO_LM_LC_ACL_TX   0x2800 /* LMP data transmit complete */
 
#define BT_EVT_TO_LM_LC_LMPC_TX   0x2900 /* LMP Command transmit complete */
 
#define BT_EVT_TO_LM_LOCAL_ACL_LB   0x2a00 /* Data to be locally loopbacked */
 
#define BT_EVT_TO_LM_HCI_ACL_ACK   0x2b00 /* HCI ACL Data ack (not used) */
 
#define BT_EVT_TO_LM_DIAG   0x2c00 /* LM Diagnostics commands */
 
#define BT_EVT_TO_BTM_CMDS   0x2f00
 
#define BT_EVT_TO_BTM_PM_MDCHG_EVT   (0x0001 | BT_EVT_TO_BTM_CMDS)
 
#define BT_EVT_TO_TCS_CMDS   0x3000
 
#define BT_EVT_TO_OBX_CL_MSG   0x3100
 
#define BT_EVT_TO_OBX_SR_MSG   0x3200
 
#define BT_EVT_TO_CTP_CMDS   0x3300
 
#define BT_EVT_TO_OBX_CL_L2C_MSG   0x3400
 
#define BT_EVT_TO_OBX_SR_L2C_MSG   0x3500
 
#define BT_EVT_TO_FTP_SRVR_CMDS   0x3600
 
#define BT_EVT_TO_FTP_CLNT_CMDS   0x3700
 
#define BT_EVT_TO_BTU_SAP   0x3800 /* SIM Access Profile events */
 
#define BT_EVT_TO_OPP_SRVR_CMDS   0x3900
 
#define BT_EVT_TO_OPP_CLNT_CMDS   0x3a00
 
#define BT_EVT_TO_GAP_MSG   0x3b00
 
#define BT_EVT_TO_START_TIMER   0x3c00
 
#define BT_EVT_TO_STOP_TIMER   0x3d00
 
#define BT_EVT_TO_START_QUICK_TIMER   0x3e00
 
#define BT_EVT_TO_NFC_NCI   0x4000 /* NCI Command, Notification or Data*/
 
#define BT_EVT_TO_NFC_NCI_VS   0x4200 /* Vendor specific message */
 
#define BT_EVT_TO_NFC_MSGS   0x4300 /* messages between NFC and NCI task */
 
#define BT_EVT_TO_NFCCSIM_NCI   0x4a00 /* events to NFCC simulation (NCI packets) */
 
#define BT_EVT_HCISU   0x5000
 
#define BT_EVT_TO_HCISU_LP_APP_SLEEPING_EVT   (0x0005 | BT_EVT_HCISU)
 
#define BT_EVT_TO_HCISU_LP_ALLOW_BT_SLEEP_EVT   (0x0006 | BT_EVT_HCISU)
 
#define BT_EVT_TO_HCISU_LP_WAKEUP_HOST_EVT   (0x0007 | BT_EVT_HCISU)
 
#define BT_EVT_TO_HCISU_LP_RCV_H4IBSS_EVT   (0x0008 | BT_EVT_HCISU)
 
#define BT_EVT_TO_HCISU_H5_RESET_EVT   (0x0009 | BT_EVT_HCISU)
 
#define BT_EVT_HCISU_START_QUICK_TIMER   (0x000a | BT_EVT_HCISU)
 
#define BT_EVT_DATA_TO_AMP_1   0x5100
 
#define BT_EVT_DATA_TO_AMP_15   0x5f00
 
#define BT_EVT_BTU_HSP2   0x6000
 
#define BT_EVT_TO_BTU_HSP2_EVT   (0x0001 | BT_EVT_BTU_HSP2)
 
#define BT_EVT_TO_BPP_PR_CMDS   0x6100 /* Printer Events */
 
#define BT_EVT_TO_BPP_SND_CMDS   0x6200 /* BPP Sender Events */
 
#define BT_EVT_TO_BIP_CMDS   0x6300
 
#define BT_EVT_BTU_HCRP   0x7000
 
#define BT_EVT_TO_BTU_HCRP_EVT   (0x0001 | BT_EVT_BTU_HCRP)
 
#define BT_EVT_TO_BTU_HCRPM_EVT   (0x0002 | BT_EVT_BTU_HCRP)
 
#define BT_EVT_BTU_HFP   0x8000
 
#define BT_EVT_TO_BTU_HFP_EVT   (0x0001 | BT_EVT_BTU_HFP)
 
#define BT_EVT_BTU_IPC_EVT   0x9000
 
#define BT_EVT_BTU_IPC_LOGMSG_EVT   (0x0000 | BT_EVT_BTU_IPC_EVT)
 
#define BT_EVT_BTU_IPC_ACL_EVT   (0x0001 | BT_EVT_BTU_IPC_EVT)
 
#define BT_EVT_BTU_IPC_BTU_EVT   (0x0002 | BT_EVT_BTU_IPC_EVT)
 
#define BT_EVT_BTU_IPC_L2C_EVT   (0x0003 | BT_EVT_BTU_IPC_EVT)
 
#define BT_EVT_BTU_IPC_L2C_MSG_EVT   (0x0004 | BT_EVT_BTU_IPC_EVT)
 
#define BT_EVT_BTU_IPC_BTM_EVT   (0x0005 | BT_EVT_BTU_IPC_EVT)
 
#define BT_EVT_BTU_IPC_AVDT_EVT   (0x0006 | BT_EVT_BTU_IPC_EVT)
 
#define BT_EVT_BTU_IPC_SLIP_EVT   (0x0007 | BT_EVT_BTU_IPC_EVT)
 
#define BT_EVT_BTU_IPC_MGMT_EVT   (0x0008 | BT_EVT_BTU_IPC_EVT)
 
#define BT_EVT_BTU_IPC_BTTRC_EVT   (0x0009 | BT_EVT_BTU_IPC_EVT)
 
#define BT_EVT_BTU_IPC_BURST_EVT   (0x000A | BT_EVT_BTU_IPC_EVT)
 
#define BT_HDR_SIZE   (sizeof (BT_HDR))
 
#define BT_PSM_SDP   0x0001
 
#define BT_PSM_RFCOMM   0x0003
 
#define BT_PSM_TCS   0x0005
 
#define BT_PSM_CTP   0x0007
 
#define BT_PSM_BNEP   0x000F
 
#define BT_PSM_HIDC   0x0011
 
#define BT_PSM_HIDI   0x0013
 
#define BT_PSM_UPNP   0x0015
 
#define BT_PSM_AVCTP   0x0017
 
#define BT_PSM_AVDTP   0x0019
 
#define BT_PSM_AVCTP_13   0x001B /* Advanced Control - Browsing */
 
#define BT_PSM_UDI_CP   0x001D /* Unrestricted Digital Information Profile C-Plane */
 
#define BT_PSM_ATT   0x001F /* Attribute Protocol */
 
#define BT_PSM_3DS   0x0021 /* 3D sync */
 
#define HCI_GET_CMD_HDR_OPCODE(p)
 
#define HCI_GET_CMD_HDR_PARAM_LEN(p)   (UINT8) (*((UINT8 *)((p) + 1) + p->offset + 2))
 
#define HCI_GET_EVT_HDR_OPCODE(p)   (UINT8)(*((UINT8 *)((p) + 1) + p->offset))
 
#define HCI_GET_EVT_HDR_PARAM_LEN(p)   (UINT8) (*((UINT8 *)((p) + 1) + p->offset + 1))
 
#define UINT32_TO_STREAM(p, u32)   {*(p)++ = (UINT8)(u32); *(p)++ = (UINT8)((u32) >> 8); *(p)++ = (UINT8)((u32) >> 16); *(p)++ = (UINT8)((u32) >> 24);}
 
#define UINT24_TO_STREAM(p, u24)   {*(p)++ = (UINT8)(u24); *(p)++ = (UINT8)((u24) >> 8); *(p)++ = (UINT8)((u24) >> 16);}
 
#define UINT16_TO_STREAM(p, u16)   {*(p)++ = (UINT8)(u16); *(p)++ = (UINT8)((u16) >> 8);}
 
#define UINT8_TO_STREAM(p, u8)   {*(p)++ = (UINT8)(u8);}
 
#define INT8_TO_STREAM(p, u8)   {*(p)++ = (INT8)(u8);}
 
#define ARRAY32_TO_STREAM(p, a)   {register int ijk; for (ijk = 0; ijk < 32; ijk++) *(p)++ = (UINT8) a[31 - ijk];}
 
#define ARRAY16_TO_STREAM(p, a)   {register int ijk; for (ijk = 0; ijk < 16; ijk++) *(p)++ = (UINT8) a[15 - ijk];}
 
#define ARRAY8_TO_STREAM(p, a)   {register int ijk; for (ijk = 0; ijk < 8; ijk++) *(p)++ = (UINT8) a[7 - ijk];}
 
#define BDADDR_TO_STREAM(p, a)   {register int ijk; for (ijk = 0; ijk < BD_ADDR_LEN; ijk++) *(p)++ = (UINT8) a[BD_ADDR_LEN - 1 - ijk];}
 
#define LAP_TO_STREAM(p, a)   {register int ijk; for (ijk = 0; ijk < LAP_LEN; ijk++) *(p)++ = (UINT8) a[LAP_LEN - 1 - ijk];}
 
#define DEVCLASS_TO_STREAM(p, a)   {register int ijk; for (ijk = 0; ijk < DEV_CLASS_LEN;ijk++) *(p)++ = (UINT8) a[DEV_CLASS_LEN - 1 - ijk];}
 
#define ARRAY_TO_STREAM(p, a, len)   {register int ijk; for (ijk = 0; ijk < len; ijk++) *(p)++ = (UINT8) a[ijk];}
 
#define REVERSE_ARRAY_TO_STREAM(p, a, len)   {register int ijk; for (ijk = 0; ijk < len; ijk++) *(p)++ = (UINT8) a[len - 1 - ijk];}
 
#define STREAM_TO_UINT8(u8, p)   {u8 = (UINT8)(*(p)); (p) += 1;}
 
#define STREAM_TO_UINT16(u16, p)   {u16 = ((UINT16)(*(p)) + (((UINT16)(*((p) + 1))) << 8)); (p) += 2;}
 
#define STREAM_TO_UINT24(u32, p)   {u32 = (((UINT32)(*(p))) + ((((UINT32)(*((p) + 1)))) << 8) + ((((UINT32)(*((p) + 2)))) << 16) ); (p) += 3;}
 
#define STREAM_TO_UINT32(u32, p)   {u32 = (((UINT32)(*(p))) + ((((UINT32)(*((p) + 1)))) << 8) + ((((UINT32)(*((p) + 2)))) << 16) + ((((UINT32)(*((p) + 3)))) << 24)); (p) += 4;}
 
#define STREAM_TO_BDADDR(a, p)   {register int ijk; register UINT8 *pbda = (UINT8 *)a + BD_ADDR_LEN - 1; for (ijk = 0; ijk < BD_ADDR_LEN; ijk++) *pbda-- = *p++;}
 
#define STREAM_TO_ARRAY32(a, p)   {register int ijk; register UINT8 *_pa = (UINT8 *)a + 31; for (ijk = 0; ijk < 32; ijk++) *_pa-- = *p++;}
 
#define STREAM_TO_ARRAY16(a, p)   {register int ijk; register UINT8 *_pa = (UINT8 *)a + 15; for (ijk = 0; ijk < 16; ijk++) *_pa-- = *p++;}
 
#define STREAM_TO_ARRAY8(a, p)   {register int ijk; register UINT8 *_pa = (UINT8 *)a + 7; for (ijk = 0; ijk < 8; ijk++) *_pa-- = *p++;}
 
#define STREAM_TO_DEVCLASS(a, p)   {register int ijk; register UINT8 *_pa = (UINT8 *)a + DEV_CLASS_LEN - 1; for (ijk = 0; ijk < DEV_CLASS_LEN; ijk++) *_pa-- = *p++;}
 
#define STREAM_TO_LAP(a, p)   {register int ijk; register UINT8 *plap = (UINT8 *)a + LAP_LEN - 1; for (ijk = 0; ijk < LAP_LEN; ijk++) *plap-- = *p++;}
 
#define STREAM_TO_ARRAY(a, p, len)   {register int ijk; for (ijk = 0; ijk < len; ijk++) ((UINT8 *) a)[ijk] = *p++;}
 
#define REVERSE_STREAM_TO_ARRAY(a, p, len)   {register int ijk; register UINT8 *_pa = (UINT8 *)a + len - 1; for (ijk = 0; ijk < len; ijk++) *_pa-- = *p++;}
 
#define UINT32_TO_FIELD(p, u32)   {*(UINT8 *)(p) = (UINT8)(u32); *((UINT8 *)(p)+1) = (UINT8)((u32) >> 8); *((UINT8 *)(p)+2) = (UINT8)((u32) >> 16); *((UINT8 *)(p)+3) = (UINT8)((u32) >> 24);}
 
#define UINT24_TO_FIELD(p, u24)   {*(UINT8 *)(p) = (UINT8)(u24); *((UINT8 *)(p)+1) = (UINT8)((u24) >> 8); *((UINT8 *)(p)+2) = (UINT8)((u24) >> 16);}
 
#define UINT16_TO_FIELD(p, u16)   {*(UINT8 *)(p) = (UINT8)(u16); *((UINT8 *)(p)+1) = (UINT8)((u16) >> 8);}
 
#define UINT8_TO_FIELD(p, u8)   {*(UINT8 *)(p) = (UINT8)(u8);}
 
#define UINT32_TO_BE_STREAM(p, u32)   {*(p)++ = (UINT8)((u32) >> 24); *(p)++ = (UINT8)((u32) >> 16); *(p)++ = (UINT8)((u32) >> 8); *(p)++ = (UINT8)(u32); }
 
#define UINT24_TO_BE_STREAM(p, u24)   {*(p)++ = (UINT8)((u24) >> 16); *(p)++ = (UINT8)((u24) >> 8); *(p)++ = (UINT8)(u24);}
 
#define UINT16_TO_BE_STREAM(p, u16)   {*(p)++ = (UINT8)((u16) >> 8); *(p)++ = (UINT8)(u16);}
 
#define UINT8_TO_BE_STREAM(p, u8)   {*(p)++ = (UINT8)(u8);}
 
#define ARRAY_TO_BE_STREAM(p, a, len)   {register int ijk; for (ijk = 0; ijk < len; ijk++) *(p)++ = (UINT8) a[ijk];}
 
#define BE_STREAM_TO_UINT8(u8, p)   {u8 = (UINT8)(*(p)); (p) += 1;}
 
#define BE_STREAM_TO_UINT16(u16, p)   {u16 = (UINT16)(((UINT16)(*(p)) << 8) + (UINT16)(*((p) + 1))); (p) += 2;}
 
#define BE_STREAM_TO_UINT24(u32, p)   {u32 = (((UINT32)(*((p) + 2))) + ((UINT32)(*((p) + 1)) << 8) + ((UINT32)(*(p)) << 16)); (p) += 3;}
 
#define BE_STREAM_TO_UINT32(u32, p)   {u32 = ((UINT32)(*((p) + 3)) + ((UINT32)(*((p) + 2)) << 8) + ((UINT32)(*((p) + 1)) << 16) + ((UINT32)(*(p)) << 24)); (p) += 4;}
 
#define BE_STREAM_TO_ARRAY(p, a, len)   {register int ijk; for (ijk = 0; ijk < len; ijk++) ((UINT8 *) a)[ijk] = *p++;}
 
#define UINT32_TO_BE_FIELD(p, u32)   {*(UINT8 *)(p) = (UINT8)((u32) >> 24); *((UINT8 *)(p)+1) = (UINT8)((u32) >> 16); *((UINT8 *)(p)+2) = (UINT8)((u32) >> 8); *((UINT8 *)(p)+3) = (UINT8)(u32); }
 
#define UINT24_TO_BE_FIELD(p, u24)   {*(UINT8 *)(p) = (UINT8)((u24) >> 16); *((UINT8 *)(p)+1) = (UINT8)((u24) >> 8); *((UINT8 *)(p)+2) = (UINT8)(u24);}
 
#define UINT16_TO_BE_FIELD(p, u16)   {*(UINT8 *)(p) = (UINT8)((u16) >> 8); *((UINT8 *)(p)+1) = (UINT8)(u16);}
 
#define UINT8_TO_BE_FIELD(p, u8)   {*(UINT8 *)(p) = (UINT8)(u8);}
 
#define BD_ADDR_LEN   6 /* Device address length */
 
#define AMP_KEY_TYPE_GAMP   0
 
#define AMP_KEY_TYPE_WIFI   1
 
#define AMP_KEY_TYPE_UWB   2
 
#define BT_OCTET8_LEN   8
 
#define LINK_KEY_LEN   16
 
#define AMP_LINK_KEY_LEN   32
 
#define BT_OCTET16_LEN   16
 
#define PIN_CODE_LEN   16
 
#define DEV_CLASS_LEN   3
 
#define EXT_INQ_RESP_LEN   3
 
#define BD_NAME_LEN   248
 
#define BD_FEATURES_LEN   8
 
#define BT_EVENT_MASK_LEN   8
 
#define LAP_LEN   3
 
#define RAND_NUM_LEN   16
 
#define ACO_LEN   12
 
#define COF_LEN   12
 
#define NO_TRAFFIC   0
 
#define BEST_EFFORT   1
 
#define GUARANTEED   2
 
#define SERV_CLASS_NETWORKING   (1 << 1)
 
#define SERV_CLASS_RENDERING   (1 << 2)
 
#define SERV_CLASS_CAPTURING   (1 << 3)
 
#define SERV_CLASS_OBJECT_TRANSFER   (1 << 4)
 
#define SERV_CLASS_OBJECT_AUDIO   (1 << 5)
 
#define SERV_CLASS_OBJECT_TELEPHONY   (1 << 6)
 
#define SERV_CLASS_OBJECT_INFORMATION   (1 << 7)
 
#define SERV_CLASS_LIMITED_DISC_MODE   (0x20)
 
#define ACCESS_CODE_BIT_LEN   72
 
#define ACCESS_CODE_BYTE_LEN   9
 
#define SHORTENED_ACCESS_CODE_BIT_LEN   68
 
#define SYNTH_TX   1 /* want synth code to TRANSMIT at this freq */
 
#define SYNTH_RX   2 /* want synth code to RECEIVE at this freq */
 
#define SYNC_REPS   1 /* repeats of sync word transmitted to start of burst */
 
#define BT_CLK27   (2 << 26)
 
#define BT_CLK12_TO_MS(x)   ((x) * 1280)
 
#define BT_MS_TO_CLK12(x)   ((x) / 1280)
 
#define BT_CLK12_TO_SLOTS(x)   ((x) << 11)
 
#define BT_CLK_TO_MS(x)   (((x) * 5 + 3) / 8)
 
#define BT_MS_TO_CLK(x)   (((x) * 8 + 2) / 5)
 
#define BT_CLK_TO_MICROSECS(x)   (((x) * 5000 + 3) / 8)
 
#define BT_MICROSECS_TO_CLK(x)   (((x) * 8 + 2499) / 5000)
 
#define MAX_UUID_SIZE   16
 
#define LEN_UUID_16   2
 
#define LEN_UUID_32   4
 
#define LEN_UUID_128   16
 
#define BT_EIR_FLAGS_TYPE   0x01
 
#define BT_EIR_MORE_16BITS_UUID_TYPE   0x02
 
#define BT_EIR_COMPLETE_16BITS_UUID_TYPE   0x03
 
#define BT_EIR_MORE_32BITS_UUID_TYPE   0x04
 
#define BT_EIR_COMPLETE_32BITS_UUID_TYPE   0x05
 
#define BT_EIR_MORE_128BITS_UUID_TYPE   0x06
 
#define BT_EIR_COMPLETE_128BITS_UUID_TYPE   0x07
 
#define BT_EIR_SHORTENED_LOCAL_NAME_TYPE   0x08
 
#define BT_EIR_COMPLETE_LOCAL_NAME_TYPE   0x09
 
#define BT_EIR_TX_POWER_LEVEL_TYPE   0x0A
 
#define BT_EIR_OOB_BD_ADDR_TYPE   0x0C
 
#define BT_EIR_OOB_COD_TYPE   0x0D
 
#define BT_EIR_OOB_SSP_HASH_C_TYPE   0x0E
 
#define BT_EIR_OOB_SSP_RAND_R_TYPE   0x0F
 
#define BT_EIR_3D_SYNC_TYPE   0x3D
 
#define BT_EIR_MANUFACTURER_SPECIFIC_TYPE   0xFF
 
#define BT_OOB_COD_SIZE   3
 
#define BT_OOB_HASH_C_SIZE   16
 
#define BT_OOB_RAND_R_SIZE   16
 
#define BRCM_PROPRIETARY_UUID_BASE   0xDA, 0x23, 0x41, 0x02, 0xA3, 0xBB, 0xC1, 0x71, 0xBA, 0x09, 0x6f, 0x21
 
#define BRCM_PROPRIETARY_GUID_BASE   0xda23, 0x4102, 0xa3, 0xbb, 0xc1, 0x71, 0xba, 0x09, 0x6f, 0x21
 
#define BRCM_RESERVED_PSM_START   0x5AE1
 
#define BRCM_RESERVED_PSM_END   0x5AFF
 
#define BRCM_UTILITY_SERVICE_PSM   0x5AE1
 
#define BRCM_MATCHER_PSM   0x5AE3
 
#define BT_CONN_STATS_DEFINED
 
#define BT_CONNECTED_USING_BREDR   1
 
#define BT_CONNECTED_USING_AMP   2
 
#define AMP_USE_AMP_NEVER   0 /* Connection only via BR/EDR controller, no AMP allowed */
 
#define AMP_USE_AMP_IF_PEER_TRIES_IT   1 /* Allow AMP to be used if the peer tries to use it */
 
#define AMP_USE_AMP_IF_PHY_CONN_EXISTS   2 /* Use AMP if there is already a physical connection (default) */
 
#define AMP_USE_AMP_IF_LC_POWER_ON   3 /* Only try to use AMP if the Local Controller is powered on */
 
#define AMP_USE_AMP_IF_LC_AND_PEER_POWER_ON   4 /* Only try to use AMP if both LC and peer are powered on */
 
#define AMP_USE_AMP_IF_POSSIBLE   5 /* Try to use AMP if at all possible */
 
#define AMP_USE_AMP_ONLY   6 /* Only use AMP, never use BR/EDR */
 
#define AMP_USE_AMP_MAX_DEF   AMP_USE_AMP_ONLY /* Maximum enum defined for AMP Criteria */
 
#define AMP_AUTOSWITCH_ALLOWED   0x80000000 /* flag to indicate that this connection is auto-switch ready */
 
#define AMP_USE_CURRENT_CRITERIA   0xFFFFFFFF /* Flag if previous criteria was to be still used */
 
#define BLE_ADDR_PUBLIC   0x00
 
#define BLE_ADDR_RANDOM   0x01
 
#define BLE_ADDR_TYPE_MASK   (BLE_ADDR_RANDOM | BLE_ADDR_PUBLIC)
 
#define BLE_ADDR_IS_STATIC(x)   ((x[0] & 0xC0) == 0xC0)
 
#define BT_DEVICE_TYPE_BREDR   0x01
 
#define BT_DEVICE_TYPE_BLE   0x02
 
#define BT_DEVICE_TYPE_DUMO   0x03
 
#define BT_TRACE_LEVEL_NONE   0 /* No trace messages to be generated */
 
#define BT_TRACE_LEVEL_ERROR   1 /* Error condition trace messages */
 
#define BT_TRACE_LEVEL_WARNING   2 /* Warning condition trace messages */
 
#define BT_TRACE_LEVEL_API   3 /* API traces */
 
#define BT_TRACE_LEVEL_EVENT   4 /* Debug messages for events */
 
#define BT_TRACE_LEVEL_DEBUG   5 /* Full debug messages */
 
#define MAX_TRACE_LEVEL   5
 
#define TRACE_CTRL_MASK   0xff000000
 
#define TRACE_GET_CTRL(x)   ((((UINT32)(x)) & TRACE_CTRL_MASK) >> 24)
 
#define TRACE_CTRL_GENERAL   0x00000000
 
#define TRACE_CTRL_STR_RESOURCE   0x01000000
 
#define TRACE_CTRL_SEQ_FLOW   0x02000000
 
#define TRACE_CTRL_MAX_NUM   3
 
#define TRACE_LAYER_MASK   0x00ff0000
 
#define TRACE_GET_LAYER(x)   ((((UINT32)(x)) & TRACE_LAYER_MASK) >> 16)
 
#define TRACE_LAYER_NONE   0x00000000
 
#define TRACE_LAYER_USB   0x00010000
 
#define TRACE_LAYER_SERIAL   0x00020000
 
#define TRACE_LAYER_SOCKET   0x00030000
 
#define TRACE_LAYER_RS232   0x00040000
 
#define TRACE_LAYER_TRANS_MAX_NUM   5
 
#define TRACE_LAYER_TRANS_ALL   0x007f0000
 
#define TRACE_LAYER_LC   0x00050000
 
#define TRACE_LAYER_LM   0x00060000
 
#define TRACE_LAYER_HCI   0x00070000
 
#define TRACE_LAYER_L2CAP   0x00080000
 
#define TRACE_LAYER_RFCOMM   0x00090000
 
#define TRACE_LAYER_SDP   0x000a0000
 
#define TRACE_LAYER_TCS   0x000b0000
 
#define TRACE_LAYER_OBEX   0x000c0000
 
#define TRACE_LAYER_BTM   0x000d0000
 
#define TRACE_LAYER_GAP   0x000e0000
 
#define TRACE_LAYER_DUN   0x000f0000
 
#define TRACE_LAYER_GOEP   0x00100000
 
#define TRACE_LAYER_ICP   0x00110000
 
#define TRACE_LAYER_HSP2   0x00120000
 
#define TRACE_LAYER_SPP   0x00130000
 
#define TRACE_LAYER_CTP   0x00140000
 
#define TRACE_LAYER_BPP   0x00150000
 
#define TRACE_LAYER_HCRP   0x00160000
 
#define TRACE_LAYER_FTP   0x00170000
 
#define TRACE_LAYER_OPP   0x00180000
 
#define TRACE_LAYER_BTU   0x00190000
 
#define TRACE_LAYER_GKI   0x001a0000
 
#define TRACE_LAYER_BNEP   0x001b0000
 
#define TRACE_LAYER_PAN   0x001c0000
 
#define TRACE_LAYER_HFP   0x001d0000
 
#define TRACE_LAYER_HID   0x001e0000
 
#define TRACE_LAYER_BIP   0x001f0000
 
#define TRACE_LAYER_AVP   0x00200000
 
#define TRACE_LAYER_A2D   0x00210000
 
#define TRACE_LAYER_SAP   0x00220000
 
#define TRACE_LAYER_AMP   0x00230000
 
#define TRACE_LAYER_MCA   0x00240000
 
#define TRACE_LAYER_ATT   0x00250000
 
#define TRACE_LAYER_SMP   0x00260000
 
#define TRACE_LAYER_NFC   0x00270000
 
#define TRACE_LAYER_NCI   0x00280000 /*it's overwritten in nfc_types.h*/
 
#define TRACE_LAYER_LLCP   0x00290000
 
#define TRACE_LAYER_NDEF   0x002a0000
 
#define TRACE_LAYER_RW   0x002b0000
 
#define TRACE_LAYER_CE   0x002c0000
 
#define TRACE_LAYER_P2P   0x002d0000
 
#define TRACE_LAYER_SNEP   0x002e0000
 
#define TRACE_LAYER_CHO   0x002f0000
 
#define TRACE_LAYER_NFA   0x00300000
 
#define TRACE_LAYER_HAL   0x00310000 /*it's overwritten in nfc_types.h*/
 
#define TRACE_LAYER_MAX_NUM   0x0032
 
#define TRACE_ORG_MASK   0x0000ff00
 
#define TRACE_GET_ORG(x)   ((((UINT32)(x)) & TRACE_ORG_MASK) >> 8)
 
#define TRACE_ORG_STACK   0x00000000
 
#define TRACE_ORG_HCI_TRANS   0x00000100
 
#define TRACE_ORG_PROTO_DISP   0x00000200
 
#define TRACE_ORG_RPC   0x00000300
 
#define TRACE_ORG_GKI   0x00000400
 
#define TRACE_ORG_APPL   0x00000500
 
#define TRACE_ORG_SCR_WRAPPER   0x00000600
 
#define TRACE_ORG_SCR_ENGINE   0x00000700
 
#define TRACE_ORG_USER_SCR   0x00000800
 
#define TRACE_ORG_TESTER   0x00000900
 
#define TRACE_ORG_MAX_NUM   10 /* 32-bit mask; must be < 32 */
 
#define TRACE_LITE_ORG_MAX_NUM   6
 
#define TRACE_ORG_ALL   0x03ff
 
#define TRACE_ORG_RPC_TRANS   0x04
 
#define TRACE_ORG_REG   0x00000909
 
#define TRACE_ORG_REG_SUCCESS   0x0000090a
 
#define TRACE_TYPE_MASK   0x000000ff
 
#define TRACE_GET_TYPE(x)   (((UINT32)(x)) & TRACE_TYPE_MASK)
 
#define TRACE_TYPE_ERROR   0x00000000
 
#define TRACE_TYPE_WARNING   0x00000001
 
#define TRACE_TYPE_API   0x00000002
 
#define TRACE_TYPE_EVENT   0x00000003
 
#define TRACE_TYPE_DEBUG   0x00000004
 
#define TRACE_TYPE_STACK_ONLY_MAX   TRACE_TYPE_DEBUG
 
#define TRACE_TYPE_TX   0x00000005
 
#define TRACE_TYPE_RX   0x00000006
 
#define TRACE_TYPE_DEBUG_ASSERT   0x00000007
 
#define TRACE_TYPE_GENERIC   0x00000008
 
#define TRACE_TYPE_REG   0x00000009
 
#define TRACE_TYPE_REG_SUCCESS   0x0000000a
 
#define TRACE_TYPE_CMD_TX   0x0000000b
 
#define TRACE_TYPE_EVT_TX   0x0000000c
 
#define TRACE_TYPE_ACL_TX   0x0000000d
 
#define TRACE_TYPE_CMD_RX   0x0000000e
 
#define TRACE_TYPE_EVT_RX   0x0000000f
 
#define TRACE_TYPE_ACL_RX   0x00000010
 
#define TRACE_TYPE_TARGET_TRACE   0x00000011
 
#define TRACE_TYPE_SCO_TX   0x00000012
 
#define TRACE_TYPE_SCO_RX   0x00000013
 
#define TRACE_TYPE_MAX_NUM   20
 
#define TRACE_TYPE_ALL   0xffff
 
#define SCR_COLOR_DEFAULT   0
 
#define SCR_COLOR_TYPE_COMMENT   1
 
#define SCR_COLOR_TYPE_COMMAND   2
 
#define SCR_COLOR_TYPE_EVENT   3
 
#define SCR_COLOR_TYPE_SELECT   4
 
#define SCR_PROTO_TRACE_HCI_SUMMARY   0x00000001
 
#define SCR_PROTO_TRACE_HCI_DATA   0x00000002
 
#define SCR_PROTO_TRACE_L2CAP   0x00000004
 
#define SCR_PROTO_TRACE_RFCOMM   0x00000008
 
#define SCR_PROTO_TRACE_SDP   0x00000010
 
#define SCR_PROTO_TRACE_TCS   0x00000020
 
#define SCR_PROTO_TRACE_OBEX   0x00000040
 
#define SCR_PROTO_TRACE_OAPP   0x00000080 /* OBEX Application Profile */
 
#define SCR_PROTO_TRACE_AMP   0x00000100
 
#define SCR_PROTO_TRACE_BNEP   0x00000200
 
#define SCR_PROTO_TRACE_AVP   0x00000400
 
#define SCR_PROTO_TRACE_MCA   0x00000800
 
#define SCR_PROTO_TRACE_ATT   0x00001000
 
#define SCR_PROTO_TRACE_SMP   0x00002000
 
#define SCR_PROTO_TRACE_NCI   0x00004000
 
#define SCR_PROTO_TRACE_LLCP   0x00008000
 
#define SCR_PROTO_TRACE_NDEF   0x00010000
 
#define SCR_PROTO_TRACE_RW   0x00020000
 
#define SCR_PROTO_TRACE_CE   0x00040000
 
#define SCR_PROTO_TRACE_SNEP   0x00080000
 
#define SCR_PROTO_TRACE_CHO   0x00100000
 
#define SCR_PROTO_TRACE_ALL   0x001fffff
 
#define SCR_PROTO_TRACE_HCI_LOGGING_VSE   0x0800 /* Brcm vs event for logmsg and protocol traces */
 
#define MAX_SCRIPT_TYPE   5
 
#define TCS_PSM_INTERCOM   5
 
#define TCS_PSM_CORDLESS   7
 
#define BT_PSM_BNEP   0x000F
 
#define HID_PSM_CONTROL   0x0011
 
#define HID_PSM_INTERRUPT   0x0013
 

Typedefs

typedef UINT8 BD_ADDR [BD_ADDR_LEN]
 
typedef UINT8 * BD_ADDR_PTR
 
typedef UINT8 tAMP_KEY_TYPE
 
typedef UINT8 BT_OCTET8 [BT_OCTET8_LEN]
 
typedef UINT8 LINK_KEY [LINK_KEY_LEN]
 
typedef UINT8 AMP_LINK_KEY [AMP_LINK_KEY_LEN]
 
typedef UINT8 BT_OCTET16 [BT_OCTET16_LEN]
 
typedef UINT8 PIN_CODE [PIN_CODE_LEN]
 
typedef UINT8 * PIN_CODE_PTR
 
typedef UINT8 DEV_CLASS [DEV_CLASS_LEN]
 
typedef UINT8 * DEV_CLASS_PTR
 
typedef UINT8 EXT_INQ_RESP [EXT_INQ_RESP_LEN]
 
typedef UINT8 * EXT_INQ_RESP_PTR
 
typedef UINT8 BD_NAME [BD_NAME_LEN+1]
 
typedef UINT8 * BD_NAME_PTR
 
typedef UINT8 BD_FEATURES [BD_FEATURES_LEN]
 
typedef UINT8 BT_EVENT_MASK [BT_EVENT_MASK_LEN]
 
typedef UINT8 LAP [LAP_LEN]
 
typedef UINT8 INQ_LAP [LAP_LEN]
 
typedef UINT8 RAND_NUM [RAND_NUM_LEN]
 
typedef UINT8 ACO [ACO_LEN]
 
typedef UINT8 COF [COF_LEN]
 
typedef UINT8 ACCESS_CODE [ACCESS_CODE_BYTE_LEN]
 
typedef UINT32 tAMP_CRITERIA
 
typedef UINT8 tBLE_ADDR_TYPE
 
typedef UINT8 tBT_DEVICE_TYPE
 
typedef void( BT_LOG_FUNC )(int trace_type, const char *fmt_str,...)
 

Macro Definition Documentation

#define ACCESS_CODE_BIT_LEN   72

Definition at line 370 of file bt_types.h.

#define ACCESS_CODE_BYTE_LEN   9

Definition at line 371 of file bt_types.h.

#define ACO_LEN   12

Definition at line 336 of file bt_types.h.

#define AMP_AUTOSWITCH_ALLOWED   0x80000000 /* flag to indicate that this connection is auto-switch ready */

Definition at line 488 of file bt_types.h.

#define AMP_KEY_TYPE_GAMP   0

Definition at line 290 of file bt_types.h.

#define AMP_KEY_TYPE_UWB   2

Definition at line 292 of file bt_types.h.

#define AMP_KEY_TYPE_WIFI   1

Definition at line 291 of file bt_types.h.

#define AMP_LINK_KEY_LEN   32

Definition at line 301 of file bt_types.h.

#define AMP_USE_AMP_IF_LC_AND_PEER_POWER_ON   4 /* Only try to use AMP if both LC and peer are powered on */

Definition at line 483 of file bt_types.h.

#define AMP_USE_AMP_IF_LC_POWER_ON   3 /* Only try to use AMP if the Local Controller is powered on */

Definition at line 482 of file bt_types.h.

#define AMP_USE_AMP_IF_PEER_TRIES_IT   1 /* Allow AMP to be used if the peer tries to use it */

Definition at line 480 of file bt_types.h.

#define AMP_USE_AMP_IF_PHY_CONN_EXISTS   2 /* Use AMP if there is already a physical connection (default) */

Definition at line 481 of file bt_types.h.

#define AMP_USE_AMP_IF_POSSIBLE   5 /* Try to use AMP if at all possible */

Definition at line 484 of file bt_types.h.

#define AMP_USE_AMP_MAX_DEF   AMP_USE_AMP_ONLY /* Maximum enum defined for AMP Criteria */

Definition at line 486 of file bt_types.h.

#define AMP_USE_AMP_NEVER   0 /* Connection only via BR/EDR controller, no AMP allowed */

Definition at line 479 of file bt_types.h.

#define AMP_USE_AMP_ONLY   6 /* Only use AMP, never use BR/EDR */

Definition at line 485 of file bt_types.h.

#define AMP_USE_CURRENT_CRITERIA   0xFFFFFFFF /* Flag if previous criteria was to be still used */

Definition at line 489 of file bt_types.h.

#define ARRAY16_TO_STREAM (   p,
 
)    {register int ijk; for (ijk = 0; ijk < 16; ijk++) *(p)++ = (UINT8) a[15 - ijk];}

Definition at line 228 of file bt_types.h.

#define ARRAY32_TO_STREAM (   p,
 
)    {register int ijk; for (ijk = 0; ijk < 32; ijk++) *(p)++ = (UINT8) a[31 - ijk];}

Definition at line 227 of file bt_types.h.

#define ARRAY8_TO_STREAM (   p,
 
)    {register int ijk; for (ijk = 0; ijk < 8; ijk++) *(p)++ = (UINT8) a[7 - ijk];}

Definition at line 229 of file bt_types.h.

#define ARRAY_TO_BE_STREAM (   p,
  a,
  len 
)    {register int ijk; for (ijk = 0; ijk < len; ijk++) *(p)++ = (UINT8) a[ijk];}

Definition at line 266 of file bt_types.h.

#define ARRAY_TO_STREAM (   p,
  a,
  len 
)    {register int ijk; for (ijk = 0; ijk < len; ijk++) *(p)++ = (UINT8) a[ijk];}

Definition at line 233 of file bt_types.h.

#define BD_ADDR_LEN   6 /* Device address length */

Definition at line 286 of file bt_types.h.

#define BD_FEATURES_LEN   8

Definition at line 323 of file bt_types.h.

#define BD_NAME_LEN   248

Definition at line 319 of file bt_types.h.

#define BDADDR_TO_STREAM (   p,
 
)    {register int ijk; for (ijk = 0; ijk < BD_ADDR_LEN; ijk++) *(p)++ = (UINT8) a[BD_ADDR_LEN - 1 - ijk];}

Definition at line 230 of file bt_types.h.

#define BE_STREAM_TO_ARRAY (   p,
  a,
  len 
)    {register int ijk; for (ijk = 0; ijk < len; ijk++) ((UINT8 *) a)[ijk] = *p++;}

Definition at line 272 of file bt_types.h.

#define BE_STREAM_TO_UINT16 (   u16,
 
)    {u16 = (UINT16)(((UINT16)(*(p)) << 8) + (UINT16)(*((p) + 1))); (p) += 2;}

Definition at line 269 of file bt_types.h.

#define BE_STREAM_TO_UINT24 (   u32,
 
)    {u32 = (((UINT32)(*((p) + 2))) + ((UINT32)(*((p) + 1)) << 8) + ((UINT32)(*(p)) << 16)); (p) += 3;}

Definition at line 270 of file bt_types.h.

#define BE_STREAM_TO_UINT32 (   u32,
 
)    {u32 = ((UINT32)(*((p) + 3)) + ((UINT32)(*((p) + 2)) << 8) + ((UINT32)(*((p) + 1)) << 16) + ((UINT32)(*(p)) << 24)); (p) += 4;}

Definition at line 271 of file bt_types.h.

#define BE_STREAM_TO_UINT8 (   u8,
 
)    {u8 = (UINT8)(*(p)); (p) += 1;}

Definition at line 268 of file bt_types.h.

#define BEST_EFFORT   1

Definition at line 354 of file bt_types.h.

#define BLE_ADDR_IS_STATIC (   x)    ((x[0] & 0xC0) == 0xC0)

Definition at line 504 of file bt_types.h.

#define BLE_ADDR_PUBLIC   0x00

Definition at line 499 of file bt_types.h.

#define BLE_ADDR_RANDOM   0x01

Definition at line 500 of file bt_types.h.

#define BLE_ADDR_TYPE_MASK   (BLE_ADDR_RANDOM | BLE_ADDR_PUBLIC)

Definition at line 501 of file bt_types.h.

#define BRCM_MATCHER_PSM   0x5AE3

Definition at line 450 of file bt_types.h.

#define BRCM_PROPRIETARY_GUID_BASE   0xda23, 0x4102, 0xa3, 0xbb, 0xc1, 0x71, 0xba, 0x09, 0x6f, 0x21

Definition at line 442 of file bt_types.h.

#define BRCM_PROPRIETARY_UUID_BASE   0xDA, 0x23, 0x41, 0x02, 0xA3, 0xBB, 0xC1, 0x71, 0xBA, 0x09, 0x6f, 0x21

Definition at line 441 of file bt_types.h.

#define BRCM_RESERVED_PSM_END   0x5AFF

Definition at line 447 of file bt_types.h.

#define BRCM_RESERVED_PSM_START   0x5AE1

Definition at line 446 of file bt_types.h.

#define BRCM_UTILITY_SERVICE_PSM   0x5AE1

Definition at line 449 of file bt_types.h.

#define BT_CLK12_TO_MS (   x)    ((x) * 1280)

Definition at line 385 of file bt_types.h.

#define BT_CLK12_TO_SLOTS (   x)    ((x) << 11)

Definition at line 387 of file bt_types.h.

#define BT_CLK27   (2 << 26)

Definition at line 382 of file bt_types.h.

#define BT_CLK_TO_MICROSECS (   x)    (((x) * 5000 + 3) / 8)

Definition at line 393 of file bt_types.h.

#define BT_CLK_TO_MS (   x)    (((x) * 5 + 3) / 8)

Definition at line 390 of file bt_types.h.

#define BT_CONN_STATS_DEFINED

Definition at line 457 of file bt_types.h.

#define BT_CONNECTED_USING_AMP   2

Definition at line 461 of file bt_types.h.

#define BT_CONNECTED_USING_BREDR   1

Definition at line 460 of file bt_types.h.

#define BT_DEVICE_TYPE_BLE   0x02

Definition at line 515 of file bt_types.h.

#define BT_DEVICE_TYPE_BREDR   0x01

Definition at line 514 of file bt_types.h.

#define BT_DEVICE_TYPE_DUMO   0x03

Definition at line 516 of file bt_types.h.

#define BT_EIR_3D_SYNC_TYPE   0x3D

Definition at line 429 of file bt_types.h.

#define BT_EIR_COMPLETE_128BITS_UUID_TYPE   0x07

Definition at line 421 of file bt_types.h.

#define BT_EIR_COMPLETE_16BITS_UUID_TYPE   0x03

Definition at line 417 of file bt_types.h.

#define BT_EIR_COMPLETE_32BITS_UUID_TYPE   0x05

Definition at line 419 of file bt_types.h.

#define BT_EIR_COMPLETE_LOCAL_NAME_TYPE   0x09

Definition at line 423 of file bt_types.h.

#define BT_EIR_FLAGS_TYPE   0x01

Definition at line 415 of file bt_types.h.

#define BT_EIR_MANUFACTURER_SPECIFIC_TYPE   0xFF

Definition at line 430 of file bt_types.h.

#define BT_EIR_MORE_128BITS_UUID_TYPE   0x06

Definition at line 420 of file bt_types.h.

#define BT_EIR_MORE_16BITS_UUID_TYPE   0x02

Definition at line 416 of file bt_types.h.

#define BT_EIR_MORE_32BITS_UUID_TYPE   0x04

Definition at line 418 of file bt_types.h.

#define BT_EIR_OOB_BD_ADDR_TYPE   0x0C

Definition at line 425 of file bt_types.h.

#define BT_EIR_OOB_COD_TYPE   0x0D

Definition at line 426 of file bt_types.h.

#define BT_EIR_OOB_SSP_HASH_C_TYPE   0x0E

Definition at line 427 of file bt_types.h.

#define BT_EIR_OOB_SSP_RAND_R_TYPE   0x0F

Definition at line 428 of file bt_types.h.

#define BT_EIR_SHORTENED_LOCAL_NAME_TYPE   0x08

Definition at line 422 of file bt_types.h.

#define BT_EIR_TX_POWER_LEVEL_TYPE   0x0A

Definition at line 424 of file bt_types.h.

#define BT_EVENT_MASK_LEN   8

Definition at line 326 of file bt_types.h.

#define BT_EVT_BTISE   0x1C00 /* Insight Script Engine event */

Definition at line 66 of file bt_types.h.

#define BT_EVT_BTSIM   0x1B00 /* Insight BTSIM event */

Definition at line 65 of file bt_types.h.

#define BT_EVT_BTU_HCRP   0x7000

Definition at line 159 of file bt_types.h.

#define BT_EVT_BTU_HFP   0x8000

Definition at line 165 of file bt_types.h.

#define BT_EVT_BTU_HSP2   0x6000

Definition at line 146 of file bt_types.h.

#define BT_EVT_BTU_IPC_ACL_EVT   (0x0001 | BT_EVT_BTU_IPC_EVT)

Definition at line 170 of file bt_types.h.

#define BT_EVT_BTU_IPC_AVDT_EVT   (0x0006 | BT_EVT_BTU_IPC_EVT)

Definition at line 175 of file bt_types.h.

#define BT_EVT_BTU_IPC_BTM_EVT   (0x0005 | BT_EVT_BTU_IPC_EVT)

Definition at line 174 of file bt_types.h.

#define BT_EVT_BTU_IPC_BTTRC_EVT   (0x0009 | BT_EVT_BTU_IPC_EVT)

Definition at line 178 of file bt_types.h.

#define BT_EVT_BTU_IPC_BTU_EVT   (0x0002 | BT_EVT_BTU_IPC_EVT)

Definition at line 171 of file bt_types.h.

#define BT_EVT_BTU_IPC_BURST_EVT   (0x000A | BT_EVT_BTU_IPC_EVT)

Definition at line 179 of file bt_types.h.

#define BT_EVT_BTU_IPC_EVT   0x9000

Definition at line 168 of file bt_types.h.

#define BT_EVT_BTU_IPC_L2C_EVT   (0x0003 | BT_EVT_BTU_IPC_EVT)

Definition at line 172 of file bt_types.h.

#define BT_EVT_BTU_IPC_L2C_MSG_EVT   (0x0004 | BT_EVT_BTU_IPC_EVT)

Definition at line 173 of file bt_types.h.

#define BT_EVT_BTU_IPC_LOGMSG_EVT   (0x0000 | BT_EVT_BTU_IPC_EVT)

Definition at line 169 of file bt_types.h.

#define BT_EVT_BTU_IPC_MGMT_EVT   (0x0008 | BT_EVT_BTU_IPC_EVT)

Definition at line 177 of file bt_types.h.

#define BT_EVT_BTU_IPC_SLIP_EVT   (0x0007 | BT_EVT_BTU_IPC_EVT)

Definition at line 176 of file bt_types.h.

#define BT_EVT_DATA_TO_AMP_1   0x5100

Definition at line 141 of file bt_types.h.

#define BT_EVT_DATA_TO_AMP_15   0x5f00

Definition at line 142 of file bt_types.h.

#define BT_EVT_HCISU   0x5000

Definition at line 132 of file bt_types.h.

#define BT_EVT_HCISU_START_QUICK_TIMER   (0x000a | BT_EVT_HCISU)

Definition at line 139 of file bt_types.h.

#define BT_EVT_MASK   0xFF00

Definition at line 40 of file bt_types.h.

#define BT_EVT_PROXY_INCOMING_MSG   0x1A00 /* BlueStackTester event: incoming message from target */

Definition at line 63 of file bt_types.h.

#define BT_EVT_TO_BIP_CMDS   0x6300

Definition at line 155 of file bt_types.h.

#define BT_EVT_TO_BPP_PR_CMDS   0x6100 /* Printer Events */

Definition at line 151 of file bt_types.h.

#define BT_EVT_TO_BPP_SND_CMDS   0x6200 /* BPP Sender Events */

Definition at line 152 of file bt_types.h.

#define BT_EVT_TO_BTM_CMDS   0x2f00

Definition at line 85 of file bt_types.h.

#define BT_EVT_TO_BTM_PM_MDCHG_EVT   (0x0001 | BT_EVT_TO_BTM_CMDS)

Definition at line 86 of file bt_types.h.

#define BT_EVT_TO_BTU_HCI_ACL   0x1100 /* ACL Data from HCI */

Definition at line 51 of file bt_types.h.

#define BT_EVT_TO_BTU_HCI_AMP1_EVT   (0x0001 | BT_EVT_TO_BTU_HCI_EVT) /* event from local AMP 1 controller */

Definition at line 47 of file bt_types.h.

#define BT_EVT_TO_BTU_HCI_AMP2_EVT   (0x0002 | BT_EVT_TO_BTU_HCI_EVT) /* event from local AMP 2 controller */

Definition at line 48 of file bt_types.h.

#define BT_EVT_TO_BTU_HCI_AMP3_EVT   (0x0003 | BT_EVT_TO_BTU_HCI_EVT) /* event from local AMP 3 controller */

Definition at line 49 of file bt_types.h.

#define BT_EVT_TO_BTU_HCI_BR_EDR_EVT   (0x0000 | BT_EVT_TO_BTU_HCI_EVT) /* event from BR/EDR controller */

Definition at line 46 of file bt_types.h.

#define BT_EVT_TO_BTU_HCI_CMD   0x1600 /* HCI command from upper layer */

Definition at line 58 of file bt_types.h.

#define BT_EVT_TO_BTU_HCI_EVT   0x1000 /* HCI Event */

Definition at line 45 of file bt_types.h.

#define BT_EVT_TO_BTU_HCI_SCO   0x1200 /* SCO Data from HCI */

Definition at line 52 of file bt_types.h.

#define BT_EVT_TO_BTU_HCIT_ERR   0x1300 /* HCI Transport Error */

Definition at line 53 of file bt_types.h.

#define BT_EVT_TO_BTU_HCRP_EVT   (0x0001 | BT_EVT_BTU_HCRP)

Definition at line 161 of file bt_types.h.

#define BT_EVT_TO_BTU_HCRPM_EVT   (0x0002 | BT_EVT_BTU_HCRP)

Definition at line 162 of file bt_types.h.

#define BT_EVT_TO_BTU_HFP_EVT   (0x0001 | BT_EVT_BTU_HFP)

Definition at line 166 of file bt_types.h.

#define BT_EVT_TO_BTU_HSP2_EVT   (0x0001 | BT_EVT_BTU_HSP2)

Definition at line 148 of file bt_types.h.

#define BT_EVT_TO_BTU_L2C_EVT   0x0900 /* L2CAP event */

Definition at line 44 of file bt_types.h.

#define BT_EVT_TO_BTU_L2C_SEG_XMIT   0x1900 /* L2CAP segment(s) transmitted */

Definition at line 61 of file bt_types.h.

#define BT_EVT_TO_BTU_SAP   0x3800 /* SIM Access Profile events */

Definition at line 103 of file bt_types.h.

#define BT_EVT_TO_BTU_SP_DATA   0x1500 /* Serial Port Data */

Definition at line 56 of file bt_types.h.

#define BT_EVT_TO_BTU_SP_EVT   0x1400 /* Serial Port Event */

Definition at line 55 of file bt_types.h.

#define BT_EVT_TO_CTP_CMDS   0x3300

Definition at line 93 of file bt_types.h.

#define BT_EVT_TO_FTP_CLNT_CMDS   0x3700

Definition at line 101 of file bt_types.h.

#define BT_EVT_TO_FTP_SRVR_CMDS   0x3600

Definition at line 100 of file bt_types.h.

#define BT_EVT_TO_GAP_MSG   0x3b00

Definition at line 110 of file bt_types.h.

#define BT_EVT_TO_HCISU_H5_RESET_EVT   (0x0009 | BT_EVT_HCISU)

Definition at line 138 of file bt_types.h.

#define BT_EVT_TO_HCISU_LP_ALLOW_BT_SLEEP_EVT   (0x0006 | BT_EVT_HCISU)

Definition at line 135 of file bt_types.h.

#define BT_EVT_TO_HCISU_LP_APP_SLEEPING_EVT   (0x0005 | BT_EVT_HCISU)

Definition at line 134 of file bt_types.h.

#define BT_EVT_TO_HCISU_LP_RCV_H4IBSS_EVT   (0x0008 | BT_EVT_HCISU)

Definition at line 137 of file bt_types.h.

#define BT_EVT_TO_HCISU_LP_WAKEUP_HOST_EVT   (0x0007 | BT_EVT_HCISU)

Definition at line 136 of file bt_types.h.

#define BT_EVT_TO_LM_DIAG   0x2c00 /* LM Diagnostics commands */

Definition at line 82 of file bt_types.h.

#define BT_EVT_TO_LM_HCI_ACL   0x2100 /* HCI ACL Data */

Definition at line 71 of file bt_types.h.

#define BT_EVT_TO_LM_HCI_ACL_ACK   0x2b00 /* HCI ACL Data ack (not used) */

Definition at line 81 of file bt_types.h.

#define BT_EVT_TO_LM_HCI_CMD   0x2000 /* HCI Command */

Definition at line 70 of file bt_types.h.

#define BT_EVT_TO_LM_HCI_SCO   0x2200 /* HCI SCO Data */

Definition at line 72 of file bt_types.h.

#define BT_EVT_TO_LM_HCIT_ERR   0x2300 /* HCI Transport Error */

Definition at line 73 of file bt_types.h.

#define BT_EVT_TO_LM_LC_ACL   0x2600 /* LC Received ACL data */

Definition at line 76 of file bt_types.h.

#define BT_EVT_TO_LM_LC_ACL_TX   0x2800 /* LMP data transmit complete */

Definition at line 78 of file bt_types.h.

#define BT_EVT_TO_LM_LC_EVT   0x2400 /* LC event */

Definition at line 74 of file bt_types.h.

#define BT_EVT_TO_LM_LC_LMP   0x2500 /* LC Received LMP command frame */

Definition at line 75 of file bt_types.h.

#define BT_EVT_TO_LM_LC_LMPC_TX   0x2900 /* LMP Command transmit complete */

Definition at line 79 of file bt_types.h.

#define BT_EVT_TO_LM_LC_SCO   0x2700 /* LC Received SCO data (not used) */

Definition at line 77 of file bt_types.h.

#define BT_EVT_TO_LM_LOCAL_ACL_LB   0x2a00 /* Data to be locally loopbacked */

Definition at line 80 of file bt_types.h.

#define BT_EVT_TO_NFC_MSGS   0x4300 /* messages between NFC and NCI task */

Definition at line 126 of file bt_types.h.

#define BT_EVT_TO_NFC_NCI   0x4000 /* NCI Command, Notification or Data*/

Definition at line 124 of file bt_types.h.

#define BT_EVT_TO_NFC_NCI_VS   0x4200 /* Vendor specific message */

Definition at line 125 of file bt_types.h.

#define BT_EVT_TO_NFCCSIM_NCI   0x4a00 /* events to NFCC simulation (NCI packets) */

Definition at line 128 of file bt_types.h.

#define BT_EVT_TO_OBX_CL_L2C_MSG   0x3400

Definition at line 96 of file bt_types.h.

#define BT_EVT_TO_OBX_CL_MSG   0x3100

Definition at line 90 of file bt_types.h.

#define BT_EVT_TO_OBX_SR_L2C_MSG   0x3500

Definition at line 97 of file bt_types.h.

#define BT_EVT_TO_OBX_SR_MSG   0x3200

Definition at line 91 of file bt_types.h.

#define BT_EVT_TO_OPP_CLNT_CMDS   0x3a00

Definition at line 107 of file bt_types.h.

#define BT_EVT_TO_OPP_SRVR_CMDS   0x3900

Definition at line 106 of file bt_types.h.

#define BT_EVT_TO_START_QUICK_TIMER   0x3e00

Definition at line 119 of file bt_types.h.

#define BT_EVT_TO_START_TIMER   0x3c00

Definition at line 113 of file bt_types.h.

#define BT_EVT_TO_STOP_TIMER   0x3d00

Definition at line 116 of file bt_types.h.

#define BT_EVT_TO_TCS_CMDS   0x3000

Definition at line 88 of file bt_types.h.

#define BT_HDR_SIZE   (sizeof (BT_HDR))

Definition at line 191 of file bt_types.h.

#define BT_MICROSECS_TO_CLK (   x)    (((x) * 8 + 2499) / 5000)

Definition at line 394 of file bt_types.h.

#define BT_MS_TO_CLK (   x)    (((x) * 8 + 2) / 5)

Definition at line 391 of file bt_types.h.

#define BT_MS_TO_CLK12 (   x)    ((x) / 1280)

Definition at line 386 of file bt_types.h.

#define BT_OCTET16_LEN   16

Definition at line 304 of file bt_types.h.

#define BT_OCTET8_LEN   8

Definition at line 295 of file bt_types.h.

#define BT_OOB_COD_SIZE   3

Definition at line 432 of file bt_types.h.

#define BT_OOB_HASH_C_SIZE   16

Definition at line 433 of file bt_types.h.

#define BT_OOB_RAND_R_SIZE   16

Definition at line 434 of file bt_types.h.

#define BT_PSM_3DS   0x0021 /* 3D sync */

Definition at line 206 of file bt_types.h.

#define BT_PSM_ATT   0x001F /* Attribute Protocol */

Definition at line 205 of file bt_types.h.

#define BT_PSM_AVCTP   0x0017

Definition at line 201 of file bt_types.h.

#define BT_PSM_AVCTP_13   0x001B /* Advanced Control - Browsing */

Definition at line 203 of file bt_types.h.

#define BT_PSM_AVDTP   0x0019

Definition at line 202 of file bt_types.h.

#define BT_PSM_BNEP   0x000F

Definition at line 689 of file bt_types.h.

#define BT_PSM_BNEP   0x000F

Definition at line 689 of file bt_types.h.

#define BT_PSM_CTP   0x0007

Definition at line 196 of file bt_types.h.

#define BT_PSM_HIDC   0x0011

Definition at line 198 of file bt_types.h.

#define BT_PSM_HIDI   0x0013

Definition at line 199 of file bt_types.h.

#define BT_PSM_RFCOMM   0x0003

Definition at line 194 of file bt_types.h.

#define BT_PSM_SDP   0x0001

Definition at line 193 of file bt_types.h.

#define BT_PSM_TCS   0x0005

Definition at line 195 of file bt_types.h.

#define BT_PSM_UDI_CP   0x001D /* Unrestricted Digital Information Profile C-Plane */

Definition at line 204 of file bt_types.h.

#define BT_PSM_UPNP   0x0015

Definition at line 200 of file bt_types.h.

#define BT_SUB_EVT_MASK   0x00FF

Definition at line 41 of file bt_types.h.

#define BT_TRACE_LEVEL_API   3 /* API traces */

Definition at line 525 of file bt_types.h.

#define BT_TRACE_LEVEL_DEBUG   5 /* Full debug messages */

Definition at line 527 of file bt_types.h.

#define BT_TRACE_LEVEL_ERROR   1 /* Error condition trace messages */

Definition at line 523 of file bt_types.h.

#define BT_TRACE_LEVEL_EVENT   4 /* Debug messages for events */

Definition at line 526 of file bt_types.h.

#define BT_TRACE_LEVEL_NONE   0 /* No trace messages to be generated */

Definition at line 522 of file bt_types.h.

#define BT_TRACE_LEVEL_WARNING   2 /* Warning condition trace messages */

Definition at line 524 of file bt_types.h.

#define COF_LEN   12

Definition at line 339 of file bt_types.h.

#define DEV_CLASS_LEN   3

Definition at line 311 of file bt_types.h.

#define DEVCLASS_TO_STREAM (   p,
 
)    {register int ijk; for (ijk = 0; ijk < DEV_CLASS_LEN;ijk++) *(p)++ = (UINT8) a[DEV_CLASS_LEN - 1 - ijk];}

Definition at line 232 of file bt_types.h.

#define EXT_INQ_RESP_LEN   3

Definition at line 315 of file bt_types.h.

#define GUARANTEED   2

Definition at line 355 of file bt_types.h.

#define HCI_GET_CMD_HDR_OPCODE (   p)
Value:
(UINT16)((*((UINT8 *)((p) + 1) + p->offset) + \
(*((UINT8 *)((p) + 1) + p->offset + 1) << 8)))

Definition at line 211 of file bt_types.h.

#define HCI_GET_CMD_HDR_PARAM_LEN (   p)    (UINT8) (*((UINT8 *)((p) + 1) + p->offset + 2))

Definition at line 213 of file bt_types.h.

#define HCI_GET_EVT_HDR_OPCODE (   p)    (UINT8)(*((UINT8 *)((p) + 1) + p->offset))

Definition at line 215 of file bt_types.h.

#define HCI_GET_EVT_HDR_PARAM_LEN (   p)    (UINT8) (*((UINT8 *)((p) + 1) + p->offset + 1))

Definition at line 216 of file bt_types.h.

#define HID_PSM_CONTROL   0x0011

Definition at line 691 of file bt_types.h.

#define HID_PSM_INTERRUPT   0x0013

Definition at line 692 of file bt_types.h.

#define INT8_TO_STREAM (   p,
  u8 
)    {*(p)++ = (INT8)(u8);}

Definition at line 226 of file bt_types.h.

#define LAP_LEN   3

Definition at line 329 of file bt_types.h.

#define LAP_TO_STREAM (   p,
 
)    {register int ijk; for (ijk = 0; ijk < LAP_LEN; ijk++) *(p)++ = (UINT8) a[LAP_LEN - 1 - ijk];}

Definition at line 231 of file bt_types.h.

#define LEN_UUID_128   16

Definition at line 402 of file bt_types.h.

#define LEN_UUID_16   2

Definition at line 400 of file bt_types.h.

#define LEN_UUID_32   4

Definition at line 401 of file bt_types.h.

#define LINK_KEY_LEN   16

Definition at line 298 of file bt_types.h.

#define MAX_SCRIPT_TYPE   5

Definition at line 685 of file bt_types.h.

#define MAX_TRACE_LEVEL   5

Definition at line 529 of file bt_types.h.

#define MAX_UUID_SIZE   16

Definition at line 397 of file bt_types.h.

#define NO_TRAFFIC   0

Definition at line 353 of file bt_types.h.

#define PIN_CODE_LEN   16

Definition at line 307 of file bt_types.h.

#define RAND_NUM_LEN   16

Definition at line 333 of file bt_types.h.

#define REVERSE_ARRAY_TO_STREAM (   p,
  a,
  len 
)    {register int ijk; for (ijk = 0; ijk < len; ijk++) *(p)++ = (UINT8) a[len - 1 - ijk];}

Definition at line 234 of file bt_types.h.

#define REVERSE_STREAM_TO_ARRAY (   a,
  p,
  len 
)    {register int ijk; register UINT8 *_pa = (UINT8 *)a + len - 1; for (ijk = 0; ijk < len; ijk++) *_pa-- = *p++;}

Definition at line 247 of file bt_types.h.

#define SCR_COLOR_DEFAULT   0

Definition at line 654 of file bt_types.h.

#define SCR_COLOR_TYPE_COMMAND   2

Definition at line 656 of file bt_types.h.

#define SCR_COLOR_TYPE_COMMENT   1

Definition at line 655 of file bt_types.h.

#define SCR_COLOR_TYPE_EVENT   3

Definition at line 657 of file bt_types.h.

#define SCR_COLOR_TYPE_SELECT   4

Definition at line 658 of file bt_types.h.

#define SCR_PROTO_TRACE_ALL   0x001fffff

Definition at line 682 of file bt_types.h.

#define SCR_PROTO_TRACE_AMP   0x00000100

Definition at line 669 of file bt_types.h.

#define SCR_PROTO_TRACE_ATT   0x00001000

Definition at line 673 of file bt_types.h.

#define SCR_PROTO_TRACE_AVP   0x00000400

Definition at line 671 of file bt_types.h.

#define SCR_PROTO_TRACE_BNEP   0x00000200

Definition at line 670 of file bt_types.h.

#define SCR_PROTO_TRACE_CE   0x00040000

Definition at line 679 of file bt_types.h.

#define SCR_PROTO_TRACE_CHO   0x00100000

Definition at line 681 of file bt_types.h.

#define SCR_PROTO_TRACE_HCI_DATA   0x00000002

Definition at line 662 of file bt_types.h.

#define SCR_PROTO_TRACE_HCI_LOGGING_VSE   0x0800 /* Brcm vs event for logmsg and protocol traces */

Definition at line 683 of file bt_types.h.

#define SCR_PROTO_TRACE_HCI_SUMMARY   0x00000001

Definition at line 661 of file bt_types.h.

#define SCR_PROTO_TRACE_L2CAP   0x00000004

Definition at line 663 of file bt_types.h.

#define SCR_PROTO_TRACE_LLCP   0x00008000

Definition at line 676 of file bt_types.h.

#define SCR_PROTO_TRACE_MCA   0x00000800

Definition at line 672 of file bt_types.h.

#define SCR_PROTO_TRACE_NCI   0x00004000

Definition at line 675 of file bt_types.h.

#define SCR_PROTO_TRACE_NDEF   0x00010000

Definition at line 677 of file bt_types.h.

#define SCR_PROTO_TRACE_OAPP   0x00000080 /* OBEX Application Profile */

Definition at line 668 of file bt_types.h.

#define SCR_PROTO_TRACE_OBEX   0x00000040

Definition at line 667 of file bt_types.h.

#define SCR_PROTO_TRACE_RFCOMM   0x00000008

Definition at line 664 of file bt_types.h.

#define SCR_PROTO_TRACE_RW   0x00020000

Definition at line 678 of file bt_types.h.

#define SCR_PROTO_TRACE_SDP   0x00000010

Definition at line 665 of file bt_types.h.

#define SCR_PROTO_TRACE_SMP   0x00002000

Definition at line 674 of file bt_types.h.

#define SCR_PROTO_TRACE_SNEP   0x00080000

Definition at line 680 of file bt_types.h.

#define SCR_PROTO_TRACE_TCS   0x00000020

Definition at line 666 of file bt_types.h.

#define SERV_CLASS_CAPTURING   (1 << 3)

Definition at line 360 of file bt_types.h.

#define SERV_CLASS_LIMITED_DISC_MODE   (0x20)

Definition at line 367 of file bt_types.h.

#define SERV_CLASS_NETWORKING   (1 << 1)

Definition at line 358 of file bt_types.h.

#define SERV_CLASS_OBJECT_AUDIO   (1 << 5)

Definition at line 362 of file bt_types.h.

#define SERV_CLASS_OBJECT_INFORMATION   (1 << 7)

Definition at line 364 of file bt_types.h.

#define SERV_CLASS_OBJECT_TELEPHONY   (1 << 6)

Definition at line 363 of file bt_types.h.

#define SERV_CLASS_OBJECT_TRANSFER   (1 << 4)

Definition at line 361 of file bt_types.h.

#define SERV_CLASS_RENDERING   (1 << 2)

Definition at line 359 of file bt_types.h.

#define SHORTENED_ACCESS_CODE_BIT_LEN   68

Definition at line 372 of file bt_types.h.

#define STREAM_TO_ARRAY (   a,
  p,
  len 
)    {register int ijk; for (ijk = 0; ijk < len; ijk++) ((UINT8 *) a)[ijk] = *p++;}

Definition at line 246 of file bt_types.h.

#define STREAM_TO_ARRAY16 (   a,
 
)    {register int ijk; register UINT8 *_pa = (UINT8 *)a + 15; for (ijk = 0; ijk < 16; ijk++) *_pa-- = *p++;}

Definition at line 242 of file bt_types.h.

#define STREAM_TO_ARRAY32 (   a,
 
)    {register int ijk; register UINT8 *_pa = (UINT8 *)a + 31; for (ijk = 0; ijk < 32; ijk++) *_pa-- = *p++;}

Definition at line 241 of file bt_types.h.

#define STREAM_TO_ARRAY8 (   a,
 
)    {register int ijk; register UINT8 *_pa = (UINT8 *)a + 7; for (ijk = 0; ijk < 8; ijk++) *_pa-- = *p++;}

Definition at line 243 of file bt_types.h.

#define STREAM_TO_BDADDR (   a,
 
)    {register int ijk; register UINT8 *pbda = (UINT8 *)a + BD_ADDR_LEN - 1; for (ijk = 0; ijk < BD_ADDR_LEN; ijk++) *pbda-- = *p++;}

Definition at line 240 of file bt_types.h.

#define STREAM_TO_DEVCLASS (   a,
 
)    {register int ijk; register UINT8 *_pa = (UINT8 *)a + DEV_CLASS_LEN - 1; for (ijk = 0; ijk < DEV_CLASS_LEN; ijk++) *_pa-- = *p++;}

Definition at line 244 of file bt_types.h.

#define STREAM_TO_LAP (   a,
 
)    {register int ijk; register UINT8 *plap = (UINT8 *)a + LAP_LEN - 1; for (ijk = 0; ijk < LAP_LEN; ijk++) *plap-- = *p++;}

Definition at line 245 of file bt_types.h.

#define STREAM_TO_UINT16 (   u16,
 
)    {u16 = ((UINT16)(*(p)) + (((UINT16)(*((p) + 1))) << 8)); (p) += 2;}

Definition at line 237 of file bt_types.h.

#define STREAM_TO_UINT24 (   u32,
 
)    {u32 = (((UINT32)(*(p))) + ((((UINT32)(*((p) + 1)))) << 8) + ((((UINT32)(*((p) + 2)))) << 16) ); (p) += 3;}

Definition at line 238 of file bt_types.h.

#define STREAM_TO_UINT32 (   u32,
 
)    {u32 = (((UINT32)(*(p))) + ((((UINT32)(*((p) + 1)))) << 8) + ((((UINT32)(*((p) + 2)))) << 16) + ((((UINT32)(*((p) + 3)))) << 24)); (p) += 4;}

Definition at line 239 of file bt_types.h.

#define STREAM_TO_UINT8 (   u8,
 
)    {u8 = (UINT8)(*(p)); (p) += 1;}

Definition at line 236 of file bt_types.h.

#define SYNC_REPS   1 /* repeats of sync word transmitted to start of burst */

Definition at line 379 of file bt_types.h.

#define SYNTH_RX   2 /* want synth code to RECEIVE at this freq */

Definition at line 377 of file bt_types.h.

#define SYNTH_TX   1 /* want synth code to TRANSMIT at this freq */

Definition at line 376 of file bt_types.h.

#define TCS_PSM_CORDLESS   7

Definition at line 688 of file bt_types.h.

#define TCS_PSM_INTERCOM   5

Definition at line 687 of file bt_types.h.

#define TRACE_CTRL_GENERAL   0x00000000

Definition at line 537 of file bt_types.h.

#define TRACE_CTRL_MASK   0xff000000

Definition at line 534 of file bt_types.h.

#define TRACE_CTRL_MAX_NUM   3

Definition at line 540 of file bt_types.h.

#define TRACE_CTRL_SEQ_FLOW   0x02000000

Definition at line 539 of file bt_types.h.

#define TRACE_CTRL_STR_RESOURCE   0x01000000

Definition at line 538 of file bt_types.h.

#define TRACE_GET_CTRL (   x)    ((((UINT32)(x)) & TRACE_CTRL_MASK) >> 24)

Definition at line 535 of file bt_types.h.

#define TRACE_GET_LAYER (   x)    ((((UINT32)(x)) & TRACE_LAYER_MASK) >> 16)

Definition at line 544 of file bt_types.h.

#define TRACE_GET_ORG (   x)    ((((UINT32)(x)) & TRACE_ORG_MASK) >> 8)

Definition at line 603 of file bt_types.h.

#define TRACE_GET_TYPE (   x)    (((UINT32)(x)) & TRACE_TYPE_MASK)

Definition at line 625 of file bt_types.h.

#define TRACE_LAYER_A2D   0x00210000

Definition at line 581 of file bt_types.h.

#define TRACE_LAYER_AMP   0x00230000

Definition at line 583 of file bt_types.h.

#define TRACE_LAYER_ATT   0x00250000

Definition at line 585 of file bt_types.h.

#define TRACE_LAYER_AVP   0x00200000

Definition at line 580 of file bt_types.h.

#define TRACE_LAYER_BIP   0x001f0000

Definition at line 579 of file bt_types.h.

#define TRACE_LAYER_BNEP   0x001b0000

Definition at line 575 of file bt_types.h.

#define TRACE_LAYER_BPP   0x00150000

Definition at line 569 of file bt_types.h.

#define TRACE_LAYER_BTM   0x000d0000

Definition at line 561 of file bt_types.h.

#define TRACE_LAYER_BTU   0x00190000

Definition at line 573 of file bt_types.h.

#define TRACE_LAYER_CE   0x002c0000

Definition at line 592 of file bt_types.h.

#define TRACE_LAYER_CHO   0x002f0000

Definition at line 595 of file bt_types.h.

#define TRACE_LAYER_CTP   0x00140000

Definition at line 568 of file bt_types.h.

#define TRACE_LAYER_DUN   0x000f0000

Definition at line 563 of file bt_types.h.

#define TRACE_LAYER_FTP   0x00170000

Definition at line 571 of file bt_types.h.

#define TRACE_LAYER_GAP   0x000e0000

Definition at line 562 of file bt_types.h.

#define TRACE_LAYER_GKI   0x001a0000

Definition at line 574 of file bt_types.h.

#define TRACE_LAYER_GOEP   0x00100000

Definition at line 564 of file bt_types.h.

#define TRACE_LAYER_HAL   0x00310000 /*it's overwritten in nfc_types.h*/

Definition at line 597 of file bt_types.h.

#define TRACE_LAYER_HCI   0x00070000

Definition at line 555 of file bt_types.h.

#define TRACE_LAYER_HCRP   0x00160000

Definition at line 570 of file bt_types.h.

#define TRACE_LAYER_HFP   0x001d0000

Definition at line 577 of file bt_types.h.

#define TRACE_LAYER_HID   0x001e0000

Definition at line 578 of file bt_types.h.

#define TRACE_LAYER_HSP2   0x00120000

Definition at line 566 of file bt_types.h.

#define TRACE_LAYER_ICP   0x00110000

Definition at line 565 of file bt_types.h.

#define TRACE_LAYER_L2CAP   0x00080000

Definition at line 556 of file bt_types.h.

#define TRACE_LAYER_LC   0x00050000

Definition at line 553 of file bt_types.h.

#define TRACE_LAYER_LLCP   0x00290000

Definition at line 589 of file bt_types.h.

#define TRACE_LAYER_LM   0x00060000

Definition at line 554 of file bt_types.h.

#define TRACE_LAYER_MASK   0x00ff0000

Definition at line 543 of file bt_types.h.

#define TRACE_LAYER_MAX_NUM   0x0032

Definition at line 598 of file bt_types.h.

#define TRACE_LAYER_MCA   0x00240000

Definition at line 584 of file bt_types.h.

#define TRACE_LAYER_NCI   0x00280000 /*it's overwritten in nfc_types.h*/

Definition at line 588 of file bt_types.h.

#define TRACE_LAYER_NDEF   0x002a0000

Definition at line 590 of file bt_types.h.

#define TRACE_LAYER_NFA   0x00300000

Definition at line 596 of file bt_types.h.

#define TRACE_LAYER_NFC   0x00270000

Definition at line 587 of file bt_types.h.

#define TRACE_LAYER_NONE   0x00000000

Definition at line 546 of file bt_types.h.

#define TRACE_LAYER_OBEX   0x000c0000

Definition at line 560 of file bt_types.h.

#define TRACE_LAYER_OPP   0x00180000

Definition at line 572 of file bt_types.h.

#define TRACE_LAYER_P2P   0x002d0000

Definition at line 593 of file bt_types.h.

#define TRACE_LAYER_PAN   0x001c0000

Definition at line 576 of file bt_types.h.

#define TRACE_LAYER_RFCOMM   0x00090000

Definition at line 557 of file bt_types.h.

#define TRACE_LAYER_RS232   0x00040000

Definition at line 550 of file bt_types.h.

#define TRACE_LAYER_RW   0x002b0000

Definition at line 591 of file bt_types.h.

#define TRACE_LAYER_SAP   0x00220000

Definition at line 582 of file bt_types.h.

#define TRACE_LAYER_SDP   0x000a0000

Definition at line 558 of file bt_types.h.

#define TRACE_LAYER_SERIAL   0x00020000

Definition at line 548 of file bt_types.h.

#define TRACE_LAYER_SMP   0x00260000

Definition at line 586 of file bt_types.h.

#define TRACE_LAYER_SNEP   0x002e0000

Definition at line 594 of file bt_types.h.

#define TRACE_LAYER_SOCKET   0x00030000

Definition at line 549 of file bt_types.h.

#define TRACE_LAYER_SPP   0x00130000

Definition at line 567 of file bt_types.h.

#define TRACE_LAYER_TCS   0x000b0000

Definition at line 559 of file bt_types.h.

#define TRACE_LAYER_TRANS_ALL   0x007f0000

Definition at line 552 of file bt_types.h.

#define TRACE_LAYER_TRANS_MAX_NUM   5

Definition at line 551 of file bt_types.h.

#define TRACE_LAYER_USB   0x00010000

Definition at line 547 of file bt_types.h.

#define TRACE_LITE_ORG_MAX_NUM   6

Definition at line 616 of file bt_types.h.

#define TRACE_ORG_ALL   0x03ff

Definition at line 617 of file bt_types.h.

#define TRACE_ORG_APPL   0x00000500

Definition at line 610 of file bt_types.h.

#define TRACE_ORG_GKI   0x00000400

Definition at line 609 of file bt_types.h.

#define TRACE_ORG_HCI_TRANS   0x00000100

Definition at line 606 of file bt_types.h.

#define TRACE_ORG_MASK   0x0000ff00

Definition at line 602 of file bt_types.h.

#define TRACE_ORG_MAX_NUM   10 /* 32-bit mask; must be < 32 */

Definition at line 615 of file bt_types.h.

#define TRACE_ORG_PROTO_DISP   0x00000200

Definition at line 607 of file bt_types.h.

#define TRACE_ORG_REG   0x00000909

Definition at line 620 of file bt_types.h.

#define TRACE_ORG_REG_SUCCESS   0x0000090a

Definition at line 621 of file bt_types.h.

#define TRACE_ORG_RPC   0x00000300

Definition at line 608 of file bt_types.h.

#define TRACE_ORG_RPC_TRANS   0x04

Definition at line 618 of file bt_types.h.

#define TRACE_ORG_SCR_ENGINE   0x00000700

Definition at line 612 of file bt_types.h.

#define TRACE_ORG_SCR_WRAPPER   0x00000600

Definition at line 611 of file bt_types.h.

#define TRACE_ORG_STACK   0x00000000

Definition at line 605 of file bt_types.h.

#define TRACE_ORG_TESTER   0x00000900

Definition at line 614 of file bt_types.h.

#define TRACE_ORG_USER_SCR   0x00000800

Definition at line 613 of file bt_types.h.

#define TRACE_TYPE_ACL_RX   0x00000010

Definition at line 644 of file bt_types.h.

#define TRACE_TYPE_ACL_TX   0x0000000d

Definition at line 641 of file bt_types.h.

#define TRACE_TYPE_ALL   0xffff

Definition at line 651 of file bt_types.h.

#define TRACE_TYPE_API   0x00000002

Definition at line 629 of file bt_types.h.

#define TRACE_TYPE_CMD_RX   0x0000000e

Definition at line 642 of file bt_types.h.

#define TRACE_TYPE_CMD_TX   0x0000000b

Definition at line 639 of file bt_types.h.

#define TRACE_TYPE_DEBUG   0x00000004

Definition at line 631 of file bt_types.h.

#define TRACE_TYPE_DEBUG_ASSERT   0x00000007

Definition at line 635 of file bt_types.h.

#define TRACE_TYPE_ERROR   0x00000000

Definition at line 627 of file bt_types.h.

#define TRACE_TYPE_EVENT   0x00000003

Definition at line 630 of file bt_types.h.

#define TRACE_TYPE_EVT_RX   0x0000000f

Definition at line 643 of file bt_types.h.

#define TRACE_TYPE_EVT_TX   0x0000000c

Definition at line 640 of file bt_types.h.

#define TRACE_TYPE_GENERIC   0x00000008

Definition at line 636 of file bt_types.h.

#define TRACE_TYPE_MASK   0x000000ff

Definition at line 624 of file bt_types.h.

#define TRACE_TYPE_MAX_NUM   20

Definition at line 650 of file bt_types.h.

#define TRACE_TYPE_REG   0x00000009

Definition at line 637 of file bt_types.h.

#define TRACE_TYPE_REG_SUCCESS   0x0000000a

Definition at line 638 of file bt_types.h.

#define TRACE_TYPE_RX   0x00000006

Definition at line 634 of file bt_types.h.

#define TRACE_TYPE_SCO_RX   0x00000013

Definition at line 647 of file bt_types.h.

#define TRACE_TYPE_SCO_TX   0x00000012

Definition at line 646 of file bt_types.h.

#define TRACE_TYPE_STACK_ONLY_MAX   TRACE_TYPE_DEBUG

Definition at line 632 of file bt_types.h.

#define TRACE_TYPE_TARGET_TRACE   0x00000011

Definition at line 645 of file bt_types.h.

#define TRACE_TYPE_TX   0x00000005

Definition at line 633 of file bt_types.h.

#define TRACE_TYPE_WARNING   0x00000001

Definition at line 628 of file bt_types.h.

#define UINT16_TO_BE_FIELD (   p,
  u16 
)    {*(UINT8 *)(p) = (UINT8)((u16) >> 8); *((UINT8 *)(p)+1) = (UINT8)(u16);}

Definition at line 281 of file bt_types.h.

#define UINT16_TO_BE_STREAM (   p,
  u16 
)    {*(p)++ = (UINT8)((u16) >> 8); *(p)++ = (UINT8)(u16);}

Definition at line 264 of file bt_types.h.

#define UINT16_TO_FIELD (   p,
  u16 
)    {*(UINT8 *)(p) = (UINT8)(u16); *((UINT8 *)(p)+1) = (UINT8)((u16) >> 8);}

Definition at line 255 of file bt_types.h.

#define UINT16_TO_STREAM (   p,
  u16 
)    {*(p)++ = (UINT8)(u16); *(p)++ = (UINT8)((u16) >> 8);}

Definition at line 224 of file bt_types.h.

#define UINT24_TO_BE_FIELD (   p,
  u24 
)    {*(UINT8 *)(p) = (UINT8)((u24) >> 16); *((UINT8 *)(p)+1) = (UINT8)((u24) >> 8); *((UINT8 *)(p)+2) = (UINT8)(u24);}

Definition at line 280 of file bt_types.h.

#define UINT24_TO_BE_STREAM (   p,
  u24 
)    {*(p)++ = (UINT8)((u24) >> 16); *(p)++ = (UINT8)((u24) >> 8); *(p)++ = (UINT8)(u24);}

Definition at line 263 of file bt_types.h.

#define UINT24_TO_FIELD (   p,
  u24 
)    {*(UINT8 *)(p) = (UINT8)(u24); *((UINT8 *)(p)+1) = (UINT8)((u24) >> 8); *((UINT8 *)(p)+2) = (UINT8)((u24) >> 16);}

Definition at line 254 of file bt_types.h.

#define UINT24_TO_STREAM (   p,
  u24 
)    {*(p)++ = (UINT8)(u24); *(p)++ = (UINT8)((u24) >> 8); *(p)++ = (UINT8)((u24) >> 16);}

Definition at line 223 of file bt_types.h.

#define UINT32_TO_BE_FIELD (   p,
  u32 
)    {*(UINT8 *)(p) = (UINT8)((u32) >> 24); *((UINT8 *)(p)+1) = (UINT8)((u32) >> 16); *((UINT8 *)(p)+2) = (UINT8)((u32) >> 8); *((UINT8 *)(p)+3) = (UINT8)(u32); }

Definition at line 279 of file bt_types.h.

#define UINT32_TO_BE_STREAM (   p,
  u32 
)    {*(p)++ = (UINT8)((u32) >> 24); *(p)++ = (UINT8)((u32) >> 16); *(p)++ = (UINT8)((u32) >> 8); *(p)++ = (UINT8)(u32); }

Definition at line 262 of file bt_types.h.

#define UINT32_TO_FIELD (   p,
  u32 
)    {*(UINT8 *)(p) = (UINT8)(u32); *((UINT8 *)(p)+1) = (UINT8)((u32) >> 8); *((UINT8 *)(p)+2) = (UINT8)((u32) >> 16); *((UINT8 *)(p)+3) = (UINT8)((u32) >> 24);}

Definition at line 253 of file bt_types.h.

#define UINT32_TO_STREAM (   p,
  u32 
)    {*(p)++ = (UINT8)(u32); *(p)++ = (UINT8)((u32) >> 8); *(p)++ = (UINT8)((u32) >> 16); *(p)++ = (UINT8)((u32) >> 24);}

Definition at line 222 of file bt_types.h.

#define UINT8_TO_BE_FIELD (   p,
  u8 
)    {*(UINT8 *)(p) = (UINT8)(u8);}

Definition at line 282 of file bt_types.h.

#define UINT8_TO_BE_STREAM (   p,
  u8 
)    {*(p)++ = (UINT8)(u8);}

Definition at line 265 of file bt_types.h.

#define UINT8_TO_FIELD (   p,
  u8 
)    {*(UINT8 *)(p) = (UINT8)(u8);}

Definition at line 256 of file bt_types.h.

#define UINT8_TO_STREAM (   p,
  u8 
)    {*(p)++ = (UINT8)(u8);}

Definition at line 225 of file bt_types.h.

Typedef Documentation

typedef UINT8 ACCESS_CODE[ACCESS_CODE_BYTE_LEN]

Definition at line 374 of file bt_types.h.

typedef UINT8 ACO[ACO_LEN]

Definition at line 337 of file bt_types.h.

typedef UINT8 AMP_LINK_KEY[AMP_LINK_KEY_LEN]

Definition at line 302 of file bt_types.h.

typedef UINT8 BD_ADDR[BD_ADDR_LEN]

Definition at line 287 of file bt_types.h.

typedef UINT8* BD_ADDR_PTR

Definition at line 288 of file bt_types.h.

typedef UINT8 BD_FEATURES[BD_FEATURES_LEN]

Definition at line 324 of file bt_types.h.

typedef UINT8 BD_NAME[BD_NAME_LEN+1]

Definition at line 320 of file bt_types.h.

typedef UINT8* BD_NAME_PTR

Definition at line 321 of file bt_types.h.

typedef UINT8 BT_EVENT_MASK[BT_EVENT_MASK_LEN]

Definition at line 327 of file bt_types.h.

typedef void( BT_LOG_FUNC)(int trace_type, const char *fmt_str,...)

Definition at line 707 of file bt_types.h.

typedef UINT8 BT_OCTET16[BT_OCTET16_LEN]

Definition at line 305 of file bt_types.h.

typedef UINT8 BT_OCTET8[BT_OCTET8_LEN]

Definition at line 296 of file bt_types.h.

typedef UINT8 COF[COF_LEN]

Definition at line 340 of file bt_types.h.

typedef UINT8 DEV_CLASS[DEV_CLASS_LEN]

Definition at line 312 of file bt_types.h.

typedef UINT8* DEV_CLASS_PTR

Definition at line 313 of file bt_types.h.

typedef UINT8 EXT_INQ_RESP[EXT_INQ_RESP_LEN]

Definition at line 316 of file bt_types.h.

typedef UINT8* EXT_INQ_RESP_PTR

Definition at line 317 of file bt_types.h.

typedef UINT8 INQ_LAP[LAP_LEN]

Definition at line 331 of file bt_types.h.

typedef UINT8 LAP[LAP_LEN]

Definition at line 330 of file bt_types.h.

typedef UINT8 LINK_KEY[LINK_KEY_LEN]

Definition at line 299 of file bt_types.h.

typedef UINT8 PIN_CODE[PIN_CODE_LEN]

Definition at line 308 of file bt_types.h.

typedef UINT8* PIN_CODE_PTR

Definition at line 309 of file bt_types.h.

typedef UINT8 RAND_NUM[RAND_NUM_LEN]

Definition at line 334 of file bt_types.h.

Definition at line 491 of file bt_types.h.

typedef UINT8 tAMP_KEY_TYPE

Definition at line 293 of file bt_types.h.

typedef UINT8 tBLE_ADDR_TYPE

Definition at line 502 of file bt_types.h.

typedef UINT8 tBT_DEVICE_TYPE

Definition at line 517 of file bt_types.h.