epoc32/include/bluetooth/hci/hciconsts.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/bluetooth/hci/hciconsts.h	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,92 +0,0 @@
     1.4 -// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 -// All rights reserved.
     1.6 -// This component and the accompanying materials are made available
     1.7 -// 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
     1.8 -// which accompanies this distribution, and is available
     1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 -//
    1.11 -// Initial Contributors:
    1.12 -// Nokia Corporation - initial contribution.
    1.13 -//
    1.14 -// Contributors:
    1.15 -//
    1.16 -// Description:
    1.17 -//
    1.18 -
    1.19 -
    1.20 -
    1.21 -/**
    1.22 - @file
    1.23 - @publishedPartner
    1.24 -*/
    1.25 -
    1.26 -#ifndef HCICONSTS_H
    1.27 -#define HCICONSTS_H
    1.28 -
    1.29 -#include <e32def.h>
    1.30 -#include <bluetooth/hci/hcitypes.h>
    1.31 -#include <bluetooth/hci/hciframe.h>
    1.32 -
    1.33 -static const TUint8 KSCODefaultTransmissionInterval = 4;
    1.34 -static const TUint8 KSCODefaultRetransmissionWindow = 0;
    1.35 -static const TUint16 KSCODefaultRxPacketLength = 20;
    1.36 -static const TUint16 KSCODefaultTxPacketLength = 20;
    1.37 -
    1.38 -static const TUint KHCIMaxEventSize = 257; // 255 + 2 header bytes
    1.39 -
    1.40 -// For backwards compatibility with HCI v1
    1.41 -static const TUint16 KSCOTxDefaultPacketLength = KSCODefaultTxPacketLength;
    1.42 -
    1.43 -static const TAirMode KSCODefaultAirMode = ECVSD;
    1.44 -
    1.45 -static const THCIConnHandle KHCIMinimumHandle = 0x000; /*!< Minimum Handle. */
    1.46 -static const THCIConnHandle KHCIBroadcastHandle	= 0xbca; /*!< Broadcast Handle. */
    1.47 -static const THCIConnHandle KHCIMaximumHandle = 0xeff; /*!< Maximum Handle. */
    1.48 -static const THCIConnHandle KInvalidConnectionHandle = 0xBADC; /*!< Invalid Connection Handle.  */
    1.49 -
    1.50 -static const TInt KHCILocalDeviceNameMaxLength = 248; /*!< Local Device Name Max Length. */
    1.51 -static const TInt KHCIRemoteDeviceNameMaxLength = KHCILocalDeviceNameMaxLength; /*!< Remote device name max length. */
    1.52 -
    1.53 -static const TInt KHCIAFHChannelMapLength = 10; /*!< AFH Channel Map Length (in bytes, 1 bit per channel, 79 channels). */
    1.54 -
    1.55 -// Inquiry stuff - see page 562 of BT Standard 1.1
    1.56 -static const TUint8  KHCIMaximumAmountOfInquiryTime = 0x30; /*!< Maximum amount of inquiry time. */
    1.57 -
    1.58 -// Event stuff
    1.59 -static const TUint8  KHCIRemoteNameReqCompleteEventPacketLength = 255; /*!< Remote name request complete event packet length. */
    1.60 -
    1.61 -static const TUint16 KHCIClockOffsetValidBit = 1<<15; /*!< Clock offset valid bit. */
    1.62 -
    1.63 -// Constants Declaration
    1.64 -static const TUint KHCIMajorVersionNumber=2;
    1.65 -static const TUint KHCIMinorVersionNumber=0;
    1.66 -static const TUint KHCIBuildVersionNumber=1;
    1.67 -static const TUint16 KMaxConnectionAcceptTimeout=0xB540;
    1.68 -static const TUint16 KMinConnectionAcceptTimeout=0x0001;
    1.69 -static const TUint16 KMaxPageTimeout=0xFFFF;
    1.70 -static const TUint16 KMinPageTimeout=0x0001;
    1.71 -
    1.72 -static const TUint16 KInvalidParameter=0xDEAD; 
    1.73 -static const THCIConnHandle KHCILargestSupportedConnectionHandle=0x3eff; 
    1.74 -
    1.75 -static const TInt KHCIWriteLinkKeyNumKeysOffset = CHctlCommandFrame::KHCICommandPacketHeaderLength + 0;
    1.76 -
    1.77 -// used by the HCTL Rx Framer (only in hci_v1, hci_v2 hctls has their own configuration
    1.78 -// of buffer size.
    1.79 -static const TUint KHCIRecvBufSize=2048;
    1.80 -static const TUint KHCISendBufSize=1024;	
    1.81 -
    1.82 -// "juice" consts
    1.83 -enum TRemotePageScanRepetitionMode
    1.84 -	{
    1.85 -	EPageScanModeR0,
    1.86 -	EPageScanModeR1,
    1.87 -	EPageScanModeR2
    1.88 -	};
    1.89 -
    1.90 -static const TInt KDefaultBluetoothPageScanRepMode = EPageScanModeR2; //R2 works better than R0: see DEF040531
    1.91 -static const TInt KDefaultBluetoothPageScanMode = 0;
    1.92 -static const TInt KDefaultBluetoothClockOffset = 0;
    1.93 -static const TInt KDefaultBluetoothClassOfDevice = 0;
    1.94 -
    1.95 -#endif // HCICONSTS_H