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 |
@publishedPartner
|
williamr@2
|
21 |
*/
|
williamr@2
|
22 |
|
williamr@2
|
23 |
#ifndef HCICONSTS_H
|
williamr@2
|
24 |
#define HCICONSTS_H
|
williamr@2
|
25 |
|
williamr@2
|
26 |
#include <e32def.h>
|
williamr@2
|
27 |
#include <bluetooth/hci/hcitypes.h>
|
williamr@2
|
28 |
#include <bluetooth/hci/hciframe.h>
|
williamr@2
|
29 |
|
williamr@2
|
30 |
static const TUint8 KSCODefaultTransmissionInterval = 4;
|
williamr@2
|
31 |
static const TUint8 KSCODefaultRetransmissionWindow = 0;
|
williamr@2
|
32 |
static const TUint16 KSCODefaultRxPacketLength = 20;
|
williamr@2
|
33 |
static const TUint16 KSCODefaultTxPacketLength = 20;
|
williamr@2
|
34 |
|
williamr@2
|
35 |
static const TUint KHCIMaxEventSize = 257; // 255 + 2 header bytes
|
williamr@2
|
36 |
|
williamr@2
|
37 |
// For backwards compatibility with HCI v1
|
williamr@2
|
38 |
static const TUint16 KSCOTxDefaultPacketLength = KSCODefaultTxPacketLength;
|
williamr@2
|
39 |
|
williamr@2
|
40 |
static const TAirMode KSCODefaultAirMode = ECVSD;
|
williamr@2
|
41 |
|
williamr@2
|
42 |
static const THCIConnHandle KHCIMinimumHandle = 0x000; /*!< Minimum Handle. */
|
williamr@2
|
43 |
static const THCIConnHandle KHCIBroadcastHandle = 0xbca; /*!< Broadcast Handle. */
|
williamr@2
|
44 |
static const THCIConnHandle KHCIMaximumHandle = 0xeff; /*!< Maximum Handle. */
|
williamr@2
|
45 |
static const THCIConnHandle KInvalidConnectionHandle = 0xBADC; /*!< Invalid Connection Handle. */
|
williamr@2
|
46 |
|
williamr@2
|
47 |
static const TInt KHCILocalDeviceNameMaxLength = 248; /*!< Local Device Name Max Length. */
|
williamr@2
|
48 |
static const TInt KHCIRemoteDeviceNameMaxLength = KHCILocalDeviceNameMaxLength; /*!< Remote device name max length. */
|
williamr@2
|
49 |
|
williamr@2
|
50 |
static const TInt KHCIAFHChannelMapLength = 10; /*!< AFH Channel Map Length (in bytes, 1 bit per channel, 79 channels). */
|
williamr@2
|
51 |
|
williamr@2
|
52 |
// Inquiry stuff - see page 562 of BT Standard 1.1
|
williamr@2
|
53 |
static const TUint8 KHCIMaximumAmountOfInquiryTime = 0x30; /*!< Maximum amount of inquiry time. */
|
williamr@2
|
54 |
|
williamr@2
|
55 |
// Event stuff
|
williamr@2
|
56 |
static const TUint8 KHCIRemoteNameReqCompleteEventPacketLength = 255; /*!< Remote name request complete event packet length. */
|
williamr@2
|
57 |
|
williamr@2
|
58 |
static const TUint16 KHCIClockOffsetValidBit = 1<<15; /*!< Clock offset valid bit. */
|
williamr@2
|
59 |
|
williamr@2
|
60 |
// Constants Declaration
|
williamr@2
|
61 |
static const TUint KHCIMajorVersionNumber=2;
|
williamr@2
|
62 |
static const TUint KHCIMinorVersionNumber=0;
|
williamr@2
|
63 |
static const TUint KHCIBuildVersionNumber=1;
|
williamr@2
|
64 |
static const TUint16 KMaxConnectionAcceptTimeout=0xB540;
|
williamr@2
|
65 |
static const TUint16 KMinConnectionAcceptTimeout=0x0001;
|
williamr@2
|
66 |
static const TUint16 KMaxPageTimeout=0xFFFF;
|
williamr@2
|
67 |
static const TUint16 KMinPageTimeout=0x0001;
|
williamr@2
|
68 |
|
williamr@2
|
69 |
static const TUint16 KInvalidParameter=0xDEAD;
|
williamr@2
|
70 |
static const THCIConnHandle KHCILargestSupportedConnectionHandle=0x3eff;
|
williamr@2
|
71 |
|
williamr@2
|
72 |
static const TInt KHCIWriteLinkKeyNumKeysOffset = CHctlCommandFrame::KHCICommandPacketHeaderLength + 0;
|
williamr@2
|
73 |
|
williamr@2
|
74 |
// used by the HCTL Rx Framer (only in hci_v1, hci_v2 hctls has their own configuration
|
williamr@2
|
75 |
// of buffer size.
|
williamr@2
|
76 |
static const TUint KHCIRecvBufSize=2048;
|
williamr@2
|
77 |
static const TUint KHCISendBufSize=1024;
|
williamr@2
|
78 |
|
williamr@2
|
79 |
// "juice" consts
|
williamr@2
|
80 |
enum TRemotePageScanRepetitionMode
|
williamr@2
|
81 |
{
|
williamr@2
|
82 |
EPageScanModeR0,
|
williamr@2
|
83 |
EPageScanModeR1,
|
williamr@2
|
84 |
EPageScanModeR2
|
williamr@2
|
85 |
};
|
williamr@2
|
86 |
|
williamr@2
|
87 |
static const TInt KDefaultBluetoothPageScanRepMode = EPageScanModeR2; //R2 works better than R0: see DEF040531
|
williamr@2
|
88 |
static const TInt KDefaultBluetoothPageScanMode = 0;
|
williamr@2
|
89 |
static const TInt KDefaultBluetoothClockOffset = 0;
|
williamr@2
|
90 |
static const TInt KDefaultBluetoothClassOfDevice = 0;
|
williamr@2
|
91 |
|
williamr@2
|
92 |
#endif // HCICONSTS_H
|