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