bluetoothcommsprofiles/btpan/bnep/bneputils.cpp
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2004-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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #include "bneputils.h"
       
    22 
       
    23 _LIT(KBnepPanic, "BnepDrv");
       
    24 const TUint8 KBnepMultiCastFlag = 0x01;
       
    25 
       
    26 /**
       
    27    Test the BT address to check if it is a multicast address.
       
    28 */
       
    29 TBool BnepUtils::IsMulticast (const TBTDevAddr& aAddr)
       
    30     {
       
    31     return (aAddr[0] & KBnepMultiCastFlag);
       
    32     }
       
    33     
       
    34 /**
       
    35    Test the BT address to check if it is a multicast address.
       
    36 */
       
    37 void BnepUtils::Panic (Bnep::TBnepPanic aReason)
       
    38     {
       
    39     User::Panic(KBnepPanic, aReason); 
       
    40     }
       
    41