epoc32/include/bluetooth/hci/hcierrors.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 
    17 
    18 /**
    19  @file 
    20  @publishedAll
    21  @released
    22 */
    23 
    24 #ifndef HCIERRORS_H
    25 #define HCIERRORS_H
    26 
    27 #include <e32def.h>
    28 
    29 static const TInt KHCIErrorBase = -6000; /** Base error value for HCI error codes */
    30 
    31 enum THCIErrorCode
    32 /** HCI error codes taken from the Bluetooth code specification.
    33 @see Bluetooth specification
    34 */
    35 	{
    36 	/** HCI OK error code - Used to indicate the absence of any error condition */
    37 	EOK									= 0x00,
    38 
    39 	/** HCI unknown opcode error code */
    40 	EUnknownOpcode 						= 0x01, // Symbian OS code -6001
    41 
    42 	/** HCI no connection error code */
    43 	ENoConnection						= 0x02, // Symbian OS code -6002
    44 	
    45 	/** HCI hardware failure error code */
    46 	EHardwareFail						= 0x03, // Symbian OS code -6003
    47 	
    48 	/** HCI page timeout error code */
    49 	EPageTimedOut						= 0x04, // Symbian OS code -6004
    50 	
    51 	/** HCI authentication failure error code */
    52 	EAuthenticationFailure 				= 0x05, // Symbian OS code -6005
    53 	
    54 	/** HCI key missing error code */
    55 	EKeyMissing							= 0x06, // Symbian OS code -6006
    56 	
    57 	/** HCI key memory full error code */
    58 	EKeyMemoryFull 						= 0x07, // Symbian OS code -6007
    59 	
    60 	/** HCI connection timeout error code */
    61 	EConnectionTimeout 					= 0x08, // Symbian OS code -6008
    62 	
    63 	/** HCI maximum number of connections exceeded error code */
    64 	EMaxConnections						= 0x09, // Symbian OS code -6009
    65 	
    66 	/** HCI maximum number of SCO connections exceeded error code */
    67 	EMaxSCOConnections 					= 0x0a, // Symbian OS code -6010
    68 	
    69 	/** HCI maximum number of ACL connections exceeded error code */
    70 	EMaxACLConnections 					= 0x0b, // Symbian OS code -6011
    71 	
    72 	/** HCI command disallowed error code */
    73 	ECommandDisallowed 					= 0x0c, // Symbian OS code -6012
    74 	
    75 	/** HCI host resource rejection error code */ 
    76 	EHostResourceRejection 				= 0x0d, // Symbian OS code -6013
    77 	
    78 	/** HCI host security rejection error code */
    79 	EHostSecurityRejection 				= 0x0e, // Symbian OS code -6014
    80 	
    81 	/** HCI host personal device rejection error code */
    82 	EHostPersonalDeviceRejection		= 0x0f, // Symbian OS code -6015 
    83 	
    84 	/** @deprecated HCI remote host timeout error code */
    85 	ERemoteHostTimeout 					= 0x10, // Symbian OS code -6016
    86 
    87 	/** HCI host timeout error code */
    88 	EHostTimeout	 					= 0x10, // Symbian OS code -6016
    89 	
    90 	/** HCI unsupported parameter error code */
    91 	EUnsupportedParameter				= 0x11, // Symbian OS code -6017
    92 	
    93 	/** HCI invalid HCI parameter error code */
    94 	EInvalidHCIParameter				= 0x12, // Symbian OS code -6018
    95 	
    96 	/** HCI remote device user ended connection error code */
    97 	ERemoteUserEndedConnection 			= 0x13, // Symbian OS code -6019
    98 	
    99 	/** HCI remote device low resources error code */
   100 	ERemoteLowResources					= 0x14, // Symbian OS code -6020
   101 	
   102 	/** HCI remote device about to power off error code */
   103 	ERemoteAboutToPowerOff 				= 0x15, // Symbian OS code -6021
   104 	
   105 	/** HCI terminated by local host error code */
   106 	ETerminatedByLocalHost 				= 0x16, // Symbian OS code -6022
   107 	
   108 	/** HCI repeated attempts error code */
   109 	ERepeatedAttempts					= 0x17, // Symbian OS code -6023
   110 	
   111 	/** HCI pairing not allowed error code */
   112 	EPairingNotAllowed 					= 0x18, // Symbian OS code -6024
   113 	
   114 	/** HCI unknown LMP PDU error code */
   115 	EUnknownLMPpdu 						= 0x19, // Symbian OS code -6025
   116 	
   117 	/** HCI unsupported remote LMP feature error code */
   118 	EUnsupportedRemoteLMPFeature		= 0x1a, // Symbian OS code -6026
   119 	
   120 	/** HCI SCO offset rejected error code */
   121 	ESCOOffsetRejected 					= 0x1b, // Symbian OS code -6027
   122 	
   123 	/** HCI SCO interval rejected error code */
   124 	ESCOIntervalRejected				= 0x1c, // Symbian OS code -6028
   125 	
   126 	/** HCI SCO air mode rejected error code */
   127 	ESCOAirModeRejected					= 0x1d, // Symbian OS code -6029
   128 	
   129 	/** HCI invalid LMP parameters error code */
   130 	EInvalidLMPParameters				= 0x1e, // Symbian OS code -6030
   131 	
   132 	/** HCI unspecified error code */
   133 	EUnspecifiedError					= 0x1f, // Symbian OS code -6031
   134 	
   135 	/** HCI unsupported LMP parameter value error code */
   136 	EUnsupportedLMPParameterValue		= 0x20, // Symbian OS code -6032
   137 	
   138 	/** HCI role change not allowed error code */
   139 	ERoleChangeNotAllowed				= 0x21, // Symbian OS code -6033
   140 	
   141 	/** HCI LMP response timeout error code */
   142 	ELMPResponseTimeout					= 0x22, // Symbian OS code -6034
   143 	
   144 	/** HCI LMP error transaction collision error code */
   145 	ELMPErrorTransactionCollision		= 0x23, // Symbian OS code -6035
   146 	
   147 	/** HCI LMP PDU not allowed error code */
   148 	ELMPPDUNotAllowed					= 0x24, // Symbian OS code -6036
   149 	
   150 	/** HCI encryption mode not acceptable error code */
   151 	EEncryptionModeNotAcceptable		= 0x25, // Symbian OS code -6037
   152 	
   153 	/** HCI unit key not used error code */
   154 	EUnitKeyUsed						= 0x26, // Symbian OS code -6038
   155 	
   156 	/** HCI QOS not supported error code */
   157 	EQOSIsNotSupported 					= 0x27, // Symbian OS code -6039
   158 	
   159 	/** HCI instant passed error code */
   160 	EInstantPassed 						= 0x28, // Symbian OS code -6040
   161 	
   162 	/** HCI pairing with unit key not supported error code */
   163 	EPairingWithUnitKeyNotSupported		= 0x29, // Symbian OS code -6041
   164 											   
   165 	/** HCI LMP transaction collision error code */
   166 	EDifferentTransactionCollision		= 0x2a, // Symbian OS code -6042
   167 	
   168 	//Reserved by Bluetooth Spec ...	= 0x2b,
   169 	
   170 	/** HCI bad parameter error code */
   171 	EQoSUnacceptableParameter			= 0x2c, // Symbian OS code -6044	
   172 	
   173 	/** HCI quality of service not accepted error code */
   174 	EQoSRejected						= 0x2d, // Symbian OS code -6045
   175 	
   176 	/** HCI adaptive frequency hopping channel classification not supported error code */
   177 	EChannelClassificationNotSupported	= 0x2e, // Symbian OS code -6046
   178 	
   179 	/** HCI insufficient security error code */
   180 	EInsufficientSecurity				= 0x2f, // Symbian OS code -6047
   181 	
   182 	/** HCI parameter value outside required range error code */
   183 	EParameterOutOfMandatoryRange		= 0x30, // Symbian OS code -6048
   184 	
   185 	//Reserved by Bluetooth Spec ...	= 0x31,
   186 	
   187 	/*!< HCI failure because a master/slave role switch is about to take place error code */
   188 	ERoleSwitchPending 					= 0x32, // Symbian OS code -6050
   189 	
   190 	//Reserved by Bluetooth Spec ...	= 0x33,
   191 	
   192 	/** HCI use of reserved baseband packet slot error code */
   193 	EReservedSlotViolation 				= 0x34, // Symbian OS code -6052
   194 	
   195 	/** HCI master/slave role switch failed error code */
   196 	ERoleSwitchFailed					= 0x35, // Symbian OS code -6053
   197 
   198 	/** Extended Inquiry Response too large error code */
   199 	EExtendedInquiryResponseTooLarge	= 0x36, // Symbian OS code -6054
   200 
   201 	/** Simple Pairing not supported by host error code */
   202 	ESimplePairingNotSupportedByHost	= 0x37, // Symbian OS code -6055
   203 	
   204 	/** Host busy-pairing error code */
   205 	EHostBusyPairing					= 0x38, // Symbian OS code -6056
   206 
   207 	};
   208 
   209 #endif // HCIERRORS_H