1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/bluetooth/hci/aclpacketconsts.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,60 @@
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 ACLPACKETCONSTS_H
1.27 +#define ACLPACKETCONSTS_H
1.28 +
1.29 +#include <e32def.h>
1.30 +
1.31 +enum TAclPacketBoundaryFlag
1.32 + {
1.33 + EContinuingHLFragment = 0x01,
1.34 + EFirstHLFragment = 0x02,
1.35 + };
1.36 +
1.37 +enum TAclPacketBroadcastFlag
1.38 + {
1.39 + EPointToPointOnly = 0x00,
1.40 + EActiveSlaveBroadcast = 0x01,
1.41 + EParkedSlaveBroadcast = 0x02,
1.42 + };
1.43 +
1.44 +// ACL Data Packet Flags
1.45 +const TUint8 KPacketDataFlagMask = 0xf0; /*!<Packet Data Flag Mask. Operates on high connection handle byte. */
1.46 +const TUint8 KPacketPBFlagMask = 0x03; /*!< Packet Boundary Flag Mask. Operates on bottom two bits of byte - 00xx. */
1.47 +const TUint8 KPacketBCFlagMask = 0x0C; /*!< Packet Broadcast Flag Mask. Operates on top two bits of bottom nibble - xx00. */
1.48 +const TUint8 KPacketPBtoBCFlagShift = 2; /*!< The shift needed for the broadcast flag relative to the boundary flag. */
1.49 +const TUint8 KPacketPBBCFlagShift = 4; /*!< Packet Boundary and Broadcast Flag Shift. */
1.50 +
1.51 +
1.52 +// Constants for source compatability.
1.53 +
1.54 +// Packet Boundary Flags
1.55 +const TUint8 KContinuingHLFragment = EContinuingHLFragment; /*!< Continuing higher layer fragment. */
1.56 +const TUint8 KFirstHLFragment = EFirstHLFragment; /*!< First higher layer fragment. */
1.57 +
1.58 +// Packet Broadcast Flags
1.59 +const TUint8 KPointToPointOnly = EPointToPointOnly; /*!< Point to point only broadcast flag. */
1.60 +const TUint8 KActiveBroadcast = EActiveSlaveBroadcast; /*!< Active broadcast flag. */
1.61 +const TUint8 KPiconetBroadcast = EParkedSlaveBroadcast; /*!< Piconet broadcast flag. */
1.62 +
1.63 +#endif // ACLPACKETCONSTS_H