1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
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
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
23 #ifndef ACLPACKETCONSTS_H
24 #define ACLPACKETCONSTS_H
28 enum TAclPacketBoundaryFlag
30 EContinuingHLFragment = 0x01,
31 EFirstHLFragment = 0x02,
34 enum TAclPacketBroadcastFlag
36 EPointToPointOnly = 0x00,
37 EActiveSlaveBroadcast = 0x01,
38 EParkedSlaveBroadcast = 0x02,
41 // ACL Data Packet Flags
42 const TUint8 KPacketDataFlagMask = 0xf0; /*!<Packet Data Flag Mask. Operates on high connection handle byte. */
43 const TUint8 KPacketPBFlagMask = 0x03; /*!< Packet Boundary Flag Mask. Operates on bottom two bits of byte - 00xx. */
44 const TUint8 KPacketBCFlagMask = 0x0C; /*!< Packet Broadcast Flag Mask. Operates on top two bits of bottom nibble - xx00. */
45 const TUint8 KPacketPBtoBCFlagShift = 2; /*!< The shift needed for the broadcast flag relative to the boundary flag. */
46 const TUint8 KPacketPBBCFlagShift = 4; /*!< Packet Boundary and Broadcast Flag Shift. */
49 // Constants for source compatability.
51 // Packet Boundary Flags
52 const TUint8 KContinuingHLFragment = EContinuingHLFragment; /*!< Continuing higher layer fragment. */
53 const TUint8 KFirstHLFragment = EFirstHLFragment; /*!< First higher layer fragment. */
55 // Packet Broadcast Flags
56 const TUint8 KPointToPointOnly = EPointToPointOnly; /*!< Point to point only broadcast flag. */
57 const TUint8 KActiveBroadcast = EActiveSlaveBroadcast; /*!< Active broadcast flag. */
58 const TUint8 KPiconetBroadcast = EParkedSlaveBroadcast; /*!< Piconet broadcast flag. */
60 #endif // ACLPACKETCONSTS_H