epoc32/include/bluetooth/hci/aclpacketconsts.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 
    17 
    18 /**
    19  @file
    20  @publishedPartner
    21 */
    22 
    23 #ifndef ACLPACKETCONSTS_H
    24 #define ACLPACKETCONSTS_H
    25 
    26 #include <e32def.h>
    27 
    28 enum TAclPacketBoundaryFlag
    29 	{
    30     EContinuingHLFragment = 0x01,
    31     EFirstHLFragment = 0x02,
    32 	};
    33 
    34 enum TAclPacketBroadcastFlag
    35 	{
    36 	EPointToPointOnly = 0x00,
    37 	EActiveSlaveBroadcast = 0x01,
    38 	EParkedSlaveBroadcast = 0x02,
    39 	};
    40 
    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.  */
    47 
    48 
    49 // Constants for source compatability.
    50 
    51 // Packet Boundary Flags
    52 const TUint8 KContinuingHLFragment = EContinuingHLFragment; /*!< Continuing higher layer fragment. */
    53 const TUint8 KFirstHLFragment = EFirstHLFragment; /*!< First higher layer fragment. */
    54 
    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. */
    59 
    60 #endif // ACLPACKETCONSTS_H