bluetoothmgmt/bluetoothclientlib/inc/btbasebandpolicy.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 16:20:16 +0300
branchRCL_3
changeset 23 5b153be919d4
parent 0 29b1cd4cb562
permissions -rw-r--r--
Revision: 201031 Kit: 201035

// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

#ifndef BTBASEBANDPOLICY_H
#define BTBASEBANDPOLICY_H

/**
@file
@publishedAll
@released
*/

#include <bttypes.h>
#include <btdevice.h>

/** Paging policy for baseband.*/
enum TBasebandPageTimePolicy
    {
	EPagingDontCare,	/*!< Don't care setting */
    EPagingNormal,		/*!< Normal setting */
    EPagingBestEffort,	/*!< Best effort setting */
    EPagingQuick,		/*!< Quick paging setting */
    };

struct TBasebandPolicyParams
/** Baseband policy parameters.*/
	{
	TBasebandPageTimePolicy		iPageTimePolicy;	/*!< Page time policy */
	};

struct TSetBasebandPolicy
/** Set baseband policy.

@deprecated
@see RBTBaseband, TPhysicalLinkQuickConnectionToken
*/
	{
	TBTDevAddr				iDevAddr;	/*!< Device Address */
	TBasebandPolicyParams	iPolicy;	/*!< Policy parameters */
	};

/** Package for SetBasebandPolicy structure
@deprecated
*/
typedef TPckgBuf<TSetBasebandPolicy> TSetBasebandPolicyBuf;	

struct TPhysicalLinkQuickConnectionToken
/** Specifies details for faster connection.*/
	{
	TBTNamelessDevice		iDevice;	/*!< Nameless device */
	TBasebandPolicyParams	iPolicy;	/*!< New policy */
	};
	
typedef TPckgBuf<TPhysicalLinkQuickConnectionToken> TPhysicalLinkQuickConnectionTokenBuf;	/*!< Package for TPhysicalLinkQuickConnectionToken structure */

#define KBasebandSlotTime 0.000625	/*!< Baseband timeslot duration (0.000625 seconds) */
static const TUint KDefaultBasebandConnectionTimeout = 10;  /*!< Default baseband connection timeout (10 seconds) */

#endif // BTBASEBANDPOLICY_H