|
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef BTFEATURES_H |
|
17 #define BTFEATURES_H |
|
18 |
|
19 /** |
|
20 @internalTechnology |
|
21 |
|
22 Bit positions of the individual local and remote features. |
|
23 @see TBTFeatures |
|
24 */ |
|
25 enum TBTSupportedFeaturesBits |
|
26 { |
|
27 ESupportedThreeSlotPacketsBit = 0, /*!< Three slot packets are supported */ |
|
28 ESupportedFiveSlotPacketsBit = 1, /*!< Five slot packets are supported */ |
|
29 ESupportedEncryptionBit = 2, /*!< Encryption is supported */ |
|
30 ESupportedSlotOffsetBit = 3, /*!< Slot offset is supported */ |
|
31 ESupportedTimingAccuracyBit = 4, /*!< Timing accuracy is supported */ |
|
32 ESupportedSwitchBit = 5, /*!< Role switch is supported */ |
|
33 ESupportedHoldModeBit = 6, /*!< Hold mode is supported */ |
|
34 ESupportedSniffModeBit = 7, /*!< Sniff mode is supported */ |
|
35 ESupportedParkModeBit = 8, /*!< Park mode is supported */ |
|
36 ESupportedRSSIBit = 9, /*!< Receive signal strength indication is supported */ |
|
37 ESupportedChannelQualityDrivenDataRateBit = 10, /*!< Channel quality driven data rate is supported */ |
|
38 ESupportedSCOLinkBit = 11, /*!< SCO links are supported */ |
|
39 ESupportedHV2PacketsBit = 12, /*!< HV2 packets are supported */ |
|
40 ESupportedHV3PacketsBit = 13, /*!< HV3 packets are supported */ |
|
41 ESupportedu_lawLogBit = 14, /*!< SCO u-law encoding is supported */ |
|
42 ESupportedA_lawLogBit = 15, /*!< SCO A-law encoding is supported */ |
|
43 ESupportedCVSDBit = 16, /*!< SCO Continuously variable slope delta modulation is supported */ |
|
44 ESupportedPagingSchemeBit = 17, /*!< Paging scheme is supported */ |
|
45 ESupportedPowerControlBit = 18, /*!< Power control is supported */ |
|
46 ESupportedTransparentSCODataBit = 19, /*!< Transparent SCO data is supported */ |
|
47 ESupportedFlowControlLagBit0Bit = 20, /*!< Flow control lag bit 0 is supported */ |
|
48 ESupportedFlowControlLagBit1Bit = 21, /*!< Flow control lag bit 1 is supported */ |
|
49 ESupportedFlowControlLagBit2Bit = 22, /*!< Flow control lag bit 2 is supported */ |
|
50 ESupportedBroadcastEncryptionBit = 23, /*!< Broadcast encryption is supported */ |
|
51 |
|
52 EEDR_ACL_2MbpsModeBit = 25, /*!< 2Mbps EDR ACL supported */ |
|
53 EEDR_ACL_3MbpsModeBit = 26, /*!< 3Mbps EDR ACL supported */ |
|
54 ESupportedEnhancedEnquiryScanBit = 27, /*!< Enhanced enquiry scan is supported */ |
|
55 ESupportedInterlacedEnquiryScanBit = 28, /*!< Interlaced enquiry scan is supported */ |
|
56 ESupportedInterlacedPageScanBit = 29, /*!< Interlaced page scan is supported */ |
|
57 ESupportedRSSIWithInquiryResultsBit = 30, /*!< Read signal strength indication with inquiry is supported */ |
|
58 ESupportedExtendedSCOLinkBit = 31, /*!< Extended SCO links are supported */ |
|
59 ESupportedEV4PacketsBit = 32, /*!< EV4 packets are supported */ |
|
60 ESupportedEV5PacketsBit = 33, /*!< EV5 packets are supported */ |
|
61 |
|
62 ESupportedAFHCapableSlaveBit = 35, /*!< Adaptive frequency hopping in slave role is supported */ |
|
63 ESupportedAFHClassificationSlaveBit = 36, /*!< Adaptive frequency hopping classification in slave role is supported */ |
|
64 |
|
65 ESupportedEDRThreeSlotPacketsBit = 39, /*!< Three slot EDR packets are supported */ |
|
66 ESupportedEDRFiveSlotPacketsBit = 40, /*!< Five slot EDR packets are supported */ |
|
67 ESupportedSniffSubratingBit = 41, /*!< Sniff subrating is supported */ |
|
68 ESupportedEncryptionPauseResumeBit = 42, /*!< Encryption Pause and Resume is supported */ |
|
69 ESupportedAFHCapableMasterBit = 43, /*!< Adaptive frequency hopping in master role is supported */ |
|
70 ESupportedAFHClassificationMasterBit = 44, /*!< Adaptive frequency hopping classification in master role is supported */ |
|
71 EEDR_eSCO_2MbpsModeBit = 45, /*!< 2Mbps EDR eSCO supported */ |
|
72 EEDR_eSCO_3MbpsModeBit = 46, /*!< 3Mbps EDR eSCO supported */ |
|
73 ESupportedEDReSCOThreeSlotPacketsBit = 47, /*!< Three slot EDR eSCO packets are supported */ |
|
74 ESupportedExtendedInquiryResponseBit = 48, /*!< Extended Inquiry Response */ |
|
75 |
|
76 ESupportedSecureSimplePairingBit = 51, /*!< Secure Simple Pairing */ |
|
77 ESupportedEncapsulatedPDUBit = 52, /*!< Encapsulated PDU */ |
|
78 ESupportedErroneousDataReportingBit = 53, /*!< Erroneous Data Reporting */ |
|
79 ESupportedNonflushablePacketBoundaryFlagBit = 54, /*!< Non-flushable Packet Boundary Flag */ |
|
80 |
|
81 ESupportedLinkSupervisionTimeoutChangedEventBit = 56, /*!< Link Supervision Timeout Changed Event */ |
|
82 ESupportedInquiryResponseTXPowerLevelBit = 57, /*!< Inquiry Response TX Power Level */ |
|
83 |
|
84 ESupportedExtendedFeaturesBit = 63, /*!< Additional features are supported */ |
|
85 }; |
|
86 |
|
87 /** |
|
88 @internalTechnology |
|
89 |
|
90 Bit positions of the individual local supported HCI commands. |
|
91 @see TBluetoothHciCommands |
|
92 */ |
|
93 enum TBluetoothSupportedCommandsBits |
|
94 { |
|
95 ESupportedInquiryCommand = 0, /*!< Inquiry command is supported */ |
|
96 ESupportedInquiryCancelCommand = 1, /*!< Inquiry Cancel command is supported */ |
|
97 ESupportedPeriodicInquiryModeCommand = 2, /*!< Periodic Inquiry Mode command is supported */ |
|
98 ESupportedExitPeriodicInquiryModeCommand = 3, /*!< Exit Periodic Inquiry Mode command is supported */ |
|
99 ESupportedCreateConnectionCommand = 4, /*!< Create Connection command is supported */ |
|
100 ESupportedDisconnectCommand = 5, /*!< Disconnect command is supported */ |
|
101 ESupportedAddSCOConnectionCommand = 6, /*!< Add SCO Connection command is supported */ |
|
102 ESupportedCancelCreateConnectionCommand = 7, /*!< Cancel Create Connection command is supported */ |
|
103 ESupportedAcceptConnectionRequestCommand = 8, /*!< Accept Connection Request command is supported */ |
|
104 ESupportedRejectConnectionRequestCommand = 9, /*!< Reject Connection Request command is supported */ |
|
105 ESupportedLinkKeyRequestReplyCommand = 10, /*!< Link Key Request Reply command is supported */ |
|
106 ESupportedLinkKeyRequestNegativeReplyCommand = 11, /*!< Link Key Request Negative Reply command is supported */ |
|
107 ESupportedPINCodeRequestReplyCommand = 12, /*!< PIN Code Request Reply command is supported */ |
|
108 ESupportedPINCodeRequestNegativeReplyCommand = 13, /*!< PIN Code Request Negative Reply command is supported */ |
|
109 ESupportedChangeConnectionPacketTypeCommand = 14, /*!< Change Connection Packet Type command is supported */ |
|
110 ESupportedAuthenticationRequestCommand = 15, /*!< Authentication Request command is supported */ |
|
111 ESupportedSetConnectionEncryptionCommand = 16, /*!< Set Connection Encryption command is supported */ |
|
112 ESupportedChangeConnectionLinkKeyCommand = 17, /*!< Change Connection Link Key command is supported */ |
|
113 ESupportedMasterLinkKeyCommand = 18, /*!< Master Link Key command is supported */ |
|
114 ESupportedRemoteNameRequestCommand = 19, /*!< Remote Name Request command is supported */ |
|
115 ESupportedCancelRemoteNameRequestCommand = 20, /*!< Cancel Remote Name Request command is supported */ |
|
116 ESupportedReadRemoteSupportedFeaturesCommand = 21, /*!< Read Remote Supported Features command is supported */ |
|
117 ESupportedReadRemoteExtendedFeaturesCommand = 22, /*!< Read Remote Extended Features command is supported */ |
|
118 ESupportedReadRemoteVersionInformationCommand = 23, /*!< Read Remote Version Information command is supported */ |
|
119 ESupportedReadClockOffsetCommand = 24, /*!< Read Clock Offset command is supported */ |
|
120 ESupportedReadLMPHandleCommand = 25, /*!< Read LMP Handle command is supported */ |
|
121 ESupportedHoldModeCommand = 33, /*!< Hold Mode command is supported */ |
|
122 ESupportedSniffModeCommand = 34, /*!< Sniff Mode command is supported */ |
|
123 ESupportedExitSniffModeCommand = 35, /*!< Exit Sniff Mode command is supported */ |
|
124 ESupportedParkStateCommand = 36, /*!< Park State command is supported */ |
|
125 ESupportedExitParkStateCommand = 37, /*!< Exit Park State command is supported */ |
|
126 ESupportedQoSSetupCommand = 38, /*!< QoS Setup command is supported */ |
|
127 ESupportedRoleDiscoveryCommand = 39, /*!< Role Discovery command is supported */ |
|
128 ESupportedSwitchRoleCommand = 40, /*!< Switch Role command is supported */ |
|
129 ESupportedReadLinkPolicySettingsCommand = 41, /*!< Read Link Policy Settings command is supported */ |
|
130 ESupportedWriteLinkPolicySettingsCommand = 42, /*!< Write Link Policy Settings command is supported */ |
|
131 ESupportedReadDefaultLinkPolicySettingsCommand = 43, /*!< Read Default Link Policy Settings command is supported */ |
|
132 ESupportedWriteDefaultLinkPolicySettingsCommand = 44, /*!< Write Default Link Policy Settings command is supported */ |
|
133 ESupportedFlowSpecificationCommand = 45, /*!< Flow Specification command is supported */ |
|
134 ESupportedSetEventMarkCommand = 46, /*!< Set Event Mark command is supported */ |
|
135 ESupportedResetCommand = 47, /*!< Reset command is supported */ |
|
136 ESupportedSetEventFilterCommand = 48, /*!< Set Event Filter command is supported */ |
|
137 ESupportedFlushCommand = 49, /*!< Flush command is supported */ |
|
138 ESupportedReadPINTypeCommand = 50, /*!< Read PIN Type command is supported */ |
|
139 ESupportedWritePINTypeCommand = 51, /*!< Write PIN Type command is supported */ |
|
140 ESupportedCreateNewUnitKeyCommand = 52, /*!< Create New Unit Key command is supported */ |
|
141 ESupportedReadStoredLinkKeyCommand = 53, /*!< Read Stored Link Key command is supported */ |
|
142 ESupportedWriteStoredLinkKeyCommand = 54, /*!< Write Stored Link Key command is supported */ |
|
143 ESupportedDeleteStoredLinkKeyCommand = 55, /*!< Delete Stored Link Key command is supported */ |
|
144 ESupportedWriteLocalNameCommand = 56, /*!< Write Local Name command is supported */ |
|
145 ESupportedReadLocalNameCommand = 57, /*!< Read Local Name command is supported */ |
|
146 ESupportedReadConnectionAcceptTimeoutCommand = 58, /*!< Read Connection Accept Timeout command is supported */ |
|
147 ESupportedWriteConnectionAcceptTimeoutCommand = 59, /*!< Write Connection Accept Timeout command is supported */ |
|
148 ESupportedReadPageTimeoutCommand = 60, /*!< Read Page Timeout command is supported */ |
|
149 ESupportedWritePageTimeoutCommand = 61, /*!< Write Page Timeout command is supported */ |
|
150 ESupportedReadScanEnableCommand = 62, /*!< Read Scan Enable command is supported */ |
|
151 ESupportedWriteScanEnableCommand = 63, /*!< Write Scan Enable command is supported */ |
|
152 ESupportedReadPageScanActivityCommand = 64, /*!< Read Page Scan Activity command is supported */ |
|
153 ESupportedWritePageScanActivityCommand = 65, /*!< Write Page Scan Activity command is supported */ |
|
154 ESupportedReadInquiryScanActivityCommand = 66, /*!< Read Inquiry Scan Activity command is supported */ |
|
155 ESupportedWriteInquiryScanActivityCommand = 67, /*!< Write Inquiry Scan Activity command is supported */ |
|
156 ESupportedReadClassOfDeviceCommand = 72, /*!< Read Class Of Device command is supported */ |
|
157 ESupportedWriteClassOfDeviceCommand = 73, /*!< Write Class Of Device command is supported */ |
|
158 ESupportedReadVoiceSettingCommand = 74, /*!< Read Voice Setting command is supported */ |
|
159 ESupportedWriteVoiceSettingCommand = 75, /*!< Write Voice Setting command is supported */ |
|
160 ESupportedReadAutomaticFlushTimeoutCommand = 76, /*!< Read Automatic Flush Timeout command is supported */ |
|
161 ESupportedWriteAutomaticFlushTimeoutCommand = 77, /*!< Write Automatic Flush Timeout command is supported */ |
|
162 ESupportedReadNumBroadcastRetransmissionsCommand = 78, /*!< Read Num Broadcast Retransmissions command is supported */ |
|
163 ESupportedWriteNumBroadcastRetransmissionsCommand = 79, /*!< Write Num Broadcast Retransmissions command is supported */ |
|
164 ESupportedReadHoldModeActivityCommand = 80, /*!< Read Hold Mode Activity command is supported */ |
|
165 ESupportedWriteHoldModeActivityCommand = 81, /*!< Write Hold Mode Activity command is supported */ |
|
166 ESupportedReadTransmitPowerLevelCommand = 82, /*!< Read Transmit Power Level command is supported */ |
|
167 ESupportedReadSynchronousFlowControlEnableCommand = 83, /*!< Read Synchronous Flow Control Enable command is supported */ |
|
168 ESupportedWriteSynchronousFlowControlEnableCommand = 84, /*!< Write Synchronous Flow Control Enable command is supported */ |
|
169 ESupportedSetHostControllerToHostFlowControlCommand = 85, /*!< Set Host Controller To Host Flow Control command is supported */ |
|
170 ESupportedHostBufferSizeCommand = 86, /*!< Host Buffer Size command is supported */ |
|
171 ESupportedHostNumberOfCompletedPacketsCommand = 87, /*!< Host Number Of Completed Packets command is supported */ |
|
172 ESupportedReadLinkSupervisionTimeoutCommand = 88, /*!< Read Link Supervision Timeout command is supported */ |
|
173 ESupportedWriteLinkSupervisionTimeoutCommand = 89, /*!< Write Link Supervision Timeout command is supported */ |
|
174 ESupportedReadNumberofSupportedIACCommand = 90, /*!< Read Number of Supported IAC command is supported */ |
|
175 ESupportedReadCurrentIACLAPCommand = 91, /*!< Read Current IAC LAP command is supported */ |
|
176 ESupportedWriteCurrentIACLAPCommand = 92, /*!< Write Current IAC LAP command is supported */ |
|
177 ESupportedReadPageScanModeCommand = 95, /*!< Read Page Scan Mode command is supported */ |
|
178 ESupportedWritePageScanModeCommand = 96, /*!< Write Page Scan Mode command is supported */ |
|
179 ESupportedSetAFHChannelClassificationCommand = 97, /*!< Set AFH Channel Classification command is supported */ |
|
180 ESupportedReadInquiryScanTypeCommand = 100, /*!< Read Inquiry Scan Type command is supported */ |
|
181 ESupportedWriteInquiryScanTypeCommand = 101, /*!< Write Inquiry Scan Type command is supported */ |
|
182 ESupportedReadInquiryModeCommand = 102, /*!< Read Inquiry Mode command is supported */ |
|
183 ESupportedWriteInquiryModeCommand = 103, /*!< Write Inquiry Mode command is supported */ |
|
184 ESupportedReadPageScanTypeCommand = 104, /*!< Read Page Scan Type command is supported */ |
|
185 ESupportedWritePageScanTypeCommand = 105, /*!< Write Page Scan Type command is supported */ |
|
186 ESupportedReadAFHChannelAssessmentModeCommand = 106, /*!< Read AFH Channel Assessment Mode command is supported */ |
|
187 ESupportedWriteAFHChannelAssessmentModeCommand = 107, /*!< Write AFH Channel Assessment Mode command is supported */ |
|
188 ESupportedReadLocalVersionInformationCommand = 115, /*!< Read Local Version Information command is supported */ |
|
189 ESupportedReadLocalSupportedFeaturesCommand = 117, /*!< Read Local Supported Features command is supported */ |
|
190 ESupportedReadLocalExtendedFeaturesCommand = 118, /*!< Read Local Extended Features command is supported */ |
|
191 ESupportedReadBufferSizeCommand = 119, /*!< Read Buffer Size command is supported */ |
|
192 ESupportedReadCountryCodeCommand = 120, /*!< Read Country Code [Deprecated] command is supported */ |
|
193 ESupportedReadBDADDRCommand = 121, /*!< Read BD ADDR command is supported */ |
|
194 ESupportedReadFailedContactCountCommand = 122, /*!< Read Failed Contact Count command is supported */ |
|
195 ESupportedResetFailedContactCountCommand = 123, /*!< Reset Failed Contact Count command is supported */ |
|
196 ESupportedGetLinkQualityCommand = 124, /*!< Get Link Quality command is supported */ |
|
197 ESupportedReadRSSICommand = 125, /*!< Read RSSI command is supported */ |
|
198 ESupportedReadAFHChannelMapCommand = 126, /*!< Read AFH Channel Map command is supported */ |
|
199 ESupportedReadBDClockCommand = 127, /*!< Read BD Clock command is supported */ |
|
200 ESupportedReadLoopbackModeCommand = 128, /*!< Read Loopback Mode command is supported */ |
|
201 ESupportedWriteLoopbackModeCommand = 129, /*!< Write Loopback Mode command is supported */ |
|
202 ESupportedEnableDeviceUnderTestModeCommand = 130, /*!< Enable Device Under Test Mode command is supported */ |
|
203 ESupportedSetupSynchronousConnectionCommand = 131, /*!< Setup Synchronous Connection command is supported */ |
|
204 ESupportedAcceptSynchronousConnectionCommand = 132, /*!< Accept Synchronous Connection command is supported */ |
|
205 ESupportedRejectSynchronousConnectionCommand = 133, /*!< Reject Synchronous Connection command is supported */ |
|
206 ESupportedReadExtendedInquiryResponseCommand = 136, /*!< Read Extended Inquiry Response command is supported */ |
|
207 ESupportedWriteExtendedInquiryResponseCommand = 137, /*!< Write Extended Inquiry Response command is supported */ |
|
208 ESupportedRefreshEncryptionKeyCommand = 138, /*!< Refresh Encryption Key command is supported */ |
|
209 ESupportedSniffSubratingCommand = 140, /*!< Sniff Subrating command is supported */ |
|
210 ESupportedReadSimplePairingModeCommand = 141, /*!< Read Simple Pairing Mode command is supported */ |
|
211 ESupportedWriteSimplePairingModeCommand = 142, /*!< Write Simple Pairing Mode command is supported */ |
|
212 ESupportedReadLocalOOBDataCommand = 143, /*!< Read Local OOB Data command is supported */ |
|
213 ESupportedReadInquiryResponseTransmitPowerCommand = 144, /*!< Read Inquiry Response Transmit Power command is supported */ |
|
214 ESupportedWriteInquiryTransmitPowerLevelCommand = 145, /*!< Write Inquiry Transmit Power Level command is supported */ |
|
215 ESupportedReadDefaultErroneousDataReportingCommand = 146, /*!< Read Default Erroneous Data Reporting command is supported */ |
|
216 ESupportedWriteDefaultErroneousDataReportingCommand = 147, /*!< Write Default Erroneous Data Reporting command is supported */ |
|
217 ESupportedIOCapabilityRequestReplyCommand = 151, /*!< IO Capability Request Reply command is supported */ |
|
218 ESupportedUserConfirmationRequestReplyCommand = 152, /*!< User Confirmation Request Reply command is supported */ |
|
219 ESupportedUserConfirmationRequestNegativeReplyCommand = 153, /*!< User Confirmation Request Negative Reply command is supported */ |
|
220 ESupportedUserPasskeyRequestReplyCommand = 154, /*!< User Passkey Request Reply command is supported */ |
|
221 ESupportedUserPasskeyRequestNegativeReplyCommand = 155, /*!< User Passkey Request Negative Reply command is supported */ |
|
222 ESupportedRemoteOOBDataRequestReplyCommand = 156, /*!< Remote OOB Data Request Reply command is supported */ |
|
223 ESupportedWriteSimplePairingDebugModeCommand = 157, /*!< Write Simple Pairing Debug Mode command is supported */ |
|
224 ESupportedEnhancedFlushCommand = 158, /*!< Enhanced Flush command is supported */ |
|
225 ESupportedRemoteOOBDataRequestNegativeReplyCommand = 159, /*!< Remote OOB Data Request Negative Reply command is supported */ |
|
226 ESupportedSendKeypressNotificationCommand = 162, /*!< Send Keypress Notification command is supported */ |
|
227 ESupportedIOCapabilitiesResponseNegativeReplyCommand = 163, /*!< IO Capabilities Response Negative Reply command is supported */ |
|
228 }; |
|
229 |
|
230 #endif // BTFEATURES_H |