ReactOS  0.4.14-dev-1314-gacf135d
fbtHciParms.h
Go to the documentation of this file.
1 #ifndef _FBT_HCI_PARAMETERS_H
2 #define _FBT_HCI_PARAMETERS_H
3 
4 // HCI header types
5 #define FBT_HCI_SYNC_HCI_COMMAND_PACKET 0x01
6 #define FBT_HCI_SYNC_ACL_DATA_PACKET 0x02
7 #define FBT_HCI_SYNC_SCO_DATA_PACKET 0x03
8 #define FBT_HCI_SYNC_HCI_EVENT_PACKET 0x04
9 
10 // Packet types for use in CreateConnection
11 #define FBT_HCI_PACKET_TYPE_DM1 0x0008 // 1 time slot, 1-18 bytes of data, FEC encoded
12 #define FBT_HCI_PACKET_TYPE_DH1 0x0010 // 1 time slot, 1-28 bytes of data, not FEC encoded
13 
14 #define FBT_HCI_PACKET_TYPE_DM3 0x0400 // 3 time slots, 2-123 bytes of data, FEC encoded
15 #define FBT_HCI_PACKET_TYPE_DH3 0x0800 // 3 time slots, 2-185 bytes of data, not FEC encoded
16 
17 #define FBT_HCI_PACKET_TYPE_DM5 0x4000 // 5 time slots, 2-226 bytes of data, FEC encoded
18 #define FBT_HCI_PACKET_TYPE_DH5 0x8000 // 3 time slots, 2-341 bytes of data, not FEC encoded
19 
20 #define FBT_HCI_PACKET_TYPE_ALL (FBT_HCI_PACKET_TYPE_DM1|FBT_HCI_PACKET_TYPE_DH1|FBT_HCI_PACKET_TYPE_DM3|FBT_HCI_PACKET_TYPE_DH3|FBT_HCI_PACKET_TYPE_DM5|FBT_HCI_PACKET_TYPE_DH5)
21 
22 // LAP codes for use in Inquiry
23 #define FBT_HCI_LAP_GIAC 0x9E8B33
24 #define FBT_HCI_LAP_LIAC 0x9E8B00
25 
26 // Link Types
27 #define FBT_HCI_LINK_TYPE_SCO 0x00
28 #define FBT_HCI_LINK_TYPE_ACL 0x01
29 
30 // Roles
31 #define FBT_HCI_ROLE_MASTER 0x00
32 #define FBT_HCI_ROLE_SLAVE 0x01
33 
34 // Event Filters
35 #define FBT_HCI_FILTER_NONE 0x00
36 #define FBT_HCI_FILTER_INQUIRY_RESULT 0x01
37 #define FBT_HCI_FILTER_CONNECTION_SETUP 0x02
38 
39 #define FBT_HCI_FILTER_ALL 0x00
40 #define FBT_HCI_FILTER_CLASS_OF_DEVICE 0x01
41 #define FBT_HCI_FILTER_BDADDR 0x02
42 
43 // Data packet parameters
44 #define FBT_HCI_PACKET_BOUNDARY_FRAGMENT 0x01
45 #define FBT_HCI_PACKET_BOUNDARY_START 0x02
46 
47 #define FBT_HCI_BROADCAST_POINT_TO_POINT 0x00
48 #define FBT_HCI_BROADCAST_ACTIVE_SLAVE 0x01
49 #define FBT_HCI_BROADCAST_PARKED_SLAVE 0x02
50 
51 #endif // _FBT_HCI_PARAMETERS_H