Partager via


HCI IOCTL Functions (Windows Embedded CE 6.0)

1/6/2010

The following table shows all the host controller interface (HCI) IOCTLs.

IOCTL call Value

BTH_HCI_IOCTL_GET_BD_FOR_HANDLE

0x00000001

BTH_HCI_IOCTL_GET_HANDLE_FOR_BD

0x00000002

BTH_HCI_IOCTL_GET_NUM_UNSENT

0x00000003

BTH_HCI_IOCTL_GET_NUM_ONDEVICE

0x00000004

BTH_HCI_IOCTL_GET_NUM_PENDING

0x00000005

BTH_HCI_IOCTL_GET_INQUIRY

0x00000006

BTH_HCI_IOCTL_GET_PERIODIC_INQUIRY

0x00000007

BTH_HCI_IOCTL_GET_LOOPBACK

0x00000008

BTH_HCI_IOCTL_GET_ERRORS

0x00000009

BTH_HCI_IOCTL_GET_FLOW

0x0000000a

BTH_HCI_IOCTL_GET_COMMANDSIZE

0x0000000b

BTH_HCI_IOCTL_HANDLE_AUTHENTICATED

0x0000000c

BTH_HCI_IOCTL_HANDLE_ENCRYPTED

0x0000000d

BTH_HCI_IOCTL_GET_UNDER_TEST

0x0000000e

BTH_HCI_IOCTL_GET_LAST_INQUIRY_DATA

0x0000000f

BTH_HCI_IOCTL_GET_BASEBAND_HANDLES

0x00000010

BTH_HCI_IOCTL_GET_SCO_PARAMETERS

0x00000012

BTH_HCI_IOCTL_GET_BASEBAND_CONNECTIONS

0x00000013

BTH_HCI_IOCTL_GET_REMOTE_COD

0x00000015

BTH_HCI_IOCTL_GET_HANDLE_MODE

0x00000011

BTH_HCI_IOCTL_GET_HARDWARE_STATUS

0x00000014

BTH_STACK_IOCTL_GET_CONNECTED

0x80000001

See the Bt_ddi.h file for complete specifications of the HCI interface

Adding new IOCTL functions

New services can be provided by the extension layer through the standard stream driver IOControl mechanism. Applications can access these new services through the new IOCTL calls.

The following illustrates how to add new IOCTL functions.

int iRes = DeviceIoControl (
   hFile, LAYER_IOCTL_SERVICE_1, 
   &p, sizeof(p), NULL, 0, NULL, NULL
);

See Also

Other Resources

Host Controller Interface
Bluetooth OS Design Development
Bluetooth Protocol Stack