1 // Copyright (c) 2006-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
27 static const TInt KHCIErrorBase = -6000; /** Base error value for HCI error codes */
30 /** HCI error codes taken from the Bluetooth code specification.
31 @see Bluetooth specification
34 /** HCI OK error code - Used to indicate the absence of any error condition */
37 /** HCI unknown opcode error code */
38 EUnknownOpcode = 0x01, // Symbian OS code -6001
40 /** HCI no connection error code */
41 ENoConnection = 0x02, // Symbian OS code -6002
43 /** HCI hardware failure error code */
44 EHardwareFail = 0x03, // Symbian OS code -6003
46 /** HCI page timeout error code */
47 EPageTimedOut = 0x04, // Symbian OS code -6004
49 /** HCI authentication failure error code */
50 EAuthenticationFailure = 0x05, // Symbian OS code -6005
52 /** HCI key missing error code */
53 EKeyMissing = 0x06, // Symbian OS code -6006
55 /** HCI key memory full error code */
56 EKeyMemoryFull = 0x07, // Symbian OS code -6007
58 /** HCI connection timeout error code */
59 EConnectionTimeout = 0x08, // Symbian OS code -6008
61 /** HCI maximum number of connections exceeded error code */
62 EMaxConnections = 0x09, // Symbian OS code -6009
64 /** HCI maximum number of SCO connections exceeded error code */
65 EMaxSCOConnections = 0x0a, // Symbian OS code -6010
67 /** HCI maximum number of ACL connections exceeded error code */
68 EMaxACLConnections = 0x0b, // Symbian OS code -6011
70 /** HCI command disallowed error code */
71 ECommandDisallowed = 0x0c, // Symbian OS code -6012
73 /** HCI host resource rejection error code */
74 EHostResourceRejection = 0x0d, // Symbian OS code -6013
76 /** HCI host security rejection error code */
77 EHostSecurityRejection = 0x0e, // Symbian OS code -6014
79 /** HCI host personal device rejection error code */
80 EHostPersonalDeviceRejection = 0x0f, // Symbian OS code -6015
82 /** @deprecated HCI remote host timeout error code */
83 ERemoteHostTimeout = 0x10, // Symbian OS code -6016
85 /** HCI host timeout error code */
86 EHostTimeout = 0x10, // Symbian OS code -6016
88 /** HCI unsupported parameter error code */
89 EUnsupportedParameter = 0x11, // Symbian OS code -6017
91 /** HCI invalid HCI parameter error code */
92 EInvalidHCIParameter = 0x12, // Symbian OS code -6018
94 /** HCI remote device user ended connection error code */
95 ERemoteUserEndedConnection = 0x13, // Symbian OS code -6019
97 /** HCI remote device low resources error code */
98 ERemoteLowResources = 0x14, // Symbian OS code -6020
100 /** HCI remote device about to power off error code */
101 ERemoteAboutToPowerOff = 0x15, // Symbian OS code -6021
103 /** HCI terminated by local host error code */
104 ETerminatedByLocalHost = 0x16, // Symbian OS code -6022
106 /** HCI repeated attempts error code */
107 ERepeatedAttempts = 0x17, // Symbian OS code -6023
109 /** HCI pairing not allowed error code */
110 EPairingNotAllowed = 0x18, // Symbian OS code -6024
112 /** HCI unknown LMP PDU error code */
113 EUnknownLMPpdu = 0x19, // Symbian OS code -6025
115 /** HCI unsupported remote LMP feature error code */
116 EUnsupportedRemoteLMPFeature = 0x1a, // Symbian OS code -6026
118 /** HCI SCO offset rejected error code */
119 ESCOOffsetRejected = 0x1b, // Symbian OS code -6027
121 /** HCI SCO interval rejected error code */
122 ESCOIntervalRejected = 0x1c, // Symbian OS code -6028
124 /** HCI SCO air mode rejected error code */
125 ESCOAirModeRejected = 0x1d, // Symbian OS code -6029
127 /** HCI invalid LMP parameters error code */
128 EInvalidLMPParameters = 0x1e, // Symbian OS code -6030
130 /** HCI unspecified error code */
131 EUnspecifiedError = 0x1f, // Symbian OS code -6031
133 /** HCI unsupported LMP parameter value error code */
134 EUnsupportedLMPParameterValue = 0x20, // Symbian OS code -6032
136 /** HCI role change not allowed error code */
137 ERoleChangeNotAllowed = 0x21, // Symbian OS code -6033
139 /** HCI LMP response timeout error code */
140 ELMPResponseTimeout = 0x22, // Symbian OS code -6034
142 /** HCI LMP error transaction collision error code */
143 ELMPErrorTransactionCollision = 0x23, // Symbian OS code -6035
145 /** HCI LMP PDU not allowed error code */
146 ELMPPDUNotAllowed = 0x24, // Symbian OS code -6036
148 /** HCI encryption mode not acceptable error code */
149 EEncryptionModeNotAcceptable = 0x25, // Symbian OS code -6037
151 /** HCI unit key not used error code */
152 EUnitKeyUsed = 0x26, // Symbian OS code -6038
154 /** HCI QOS not supported error code */
155 EQOSIsNotSupported = 0x27, // Symbian OS code -6039
157 /** HCI instant passed error code */
158 EInstantPassed = 0x28, // Symbian OS code -6040
160 /** HCI pairing with unit key not supported error code */
161 EPairingWithUnitKeyNotSupported = 0x29, // Symbian OS code -6041
163 /** HCI LMP transaction collision error code */
164 EDifferentTransactionCollision = 0x2a, // Symbian OS code -6042
166 //Reserved by Bluetooth Spec ... = 0x2b,
168 /** HCI bad parameter error code */
169 EQoSUnacceptableParameter = 0x2c, // Symbian OS code -6044
171 /** HCI quality of service not accepted error code */
172 EQoSRejected = 0x2d, // Symbian OS code -6045
174 /** HCI adaptive frequency hopping channel classification not supported error code */
175 EChannelClassificationNotSupported = 0x2e, // Symbian OS code -6046
177 /** HCI insufficient security error code */
178 EInsufficientSecurity = 0x2f, // Symbian OS code -6047
180 /** HCI parameter value outside required range error code */
181 EParameterOutOfMandatoryRange = 0x30, // Symbian OS code -6048
183 //Reserved by Bluetooth Spec ... = 0x31,
185 /*!< HCI failure because a master/slave role switch is about to take place error code */
186 ERoleSwitchPending = 0x32, // Symbian OS code -6050
188 //Reserved by Bluetooth Spec ... = 0x33,
190 /** HCI use of reserved baseband packet slot error code */
191 EReservedSlotViolation = 0x34, // Symbian OS code -6052
193 /** HCI master/slave role switch failed error code */
194 ERoleSwitchFailed = 0x35, // Symbian OS code -6053
196 /** Extended Inquiry Response too large error code */
197 EExtendedInquiryResponseTooLarge = 0x36, // Symbian OS code -6054
199 /** Simple Pairing not supported by host error code */
200 ESimplePairingNotSupportedByHost = 0x37, // Symbian OS code -6055
202 /** Host busy-pairing error code */
203 EHostBusyPairing = 0x38, // Symbian OS code -6056
207 #endif // HCIERRORS_H