bluetooth/btstack/eirman/interface/eirmanshared.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2007-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 // Shared client/server definitions
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #ifndef _EIRMANSHARED_H
       
    24 #define _EIRMANSHARED_H
       
    25 
       
    26 #include <e32std.h>
       
    27 
       
    28 const TUid KEirManSvrUid = {0x102835A6};
       
    29 
       
    30 const TInt KEirManSrvMajorVersionNumber = 1;
       
    31 const TInt KEirManSrvMinorVersionNumber = 0;
       
    32 const TInt KEirManSrvBuildVersionNumber = 0;
       
    33 
       
    34 // Packet size
       
    35 const TInt KEirDM1PacketSize = 17;				// DM1
       
    36 const TInt KEirDM3PacketSize = 123;				// DM3
       
    37 const TInt KEirDM5PacketSize = 226;				// DM5
       
    38 const TInt KEirPacketSize = KEirDM5PacketSize;	// The maximum eir packet size with FEC
       
    39 const TInt KEirDM1PayloadHeaderSize = 1;		// Payload Header length for DM1
       
    40 const TInt KEirNoneDM1PayloadHeaderSize = 2;	// Payload Header length for DM3 and DM5
       
    41 
       
    42 const TInt KEirLengthTagLength = 2;
       
    43 
       
    44 _LIT(KEirManServerName, "!eirman");
       
    45 
       
    46 enum TEirManMessages
       
    47 	{
       
    48 	EEirManRegisterTag,
       
    49 	EEirManSpaceAvailableNotification,
       
    50 	EEirManCancelSpaceAvailableNotification,
       
    51 	EEirManSetData,
       
    52 	EEirManNewData,
       
    53 	/* Add new server functions before this */
       
    54 	EEirManServerMessageCount
       
    55 	};
       
    56 
       
    57 _LIT(KEirManCliPncCat, "EirMan-Client");
       
    58 
       
    59 enum TEirManPanicClient
       
    60 	{
       
    61 	EEirManPanicInvalidIPC,
       
    62 	EEirManPanicInvalidTag,
       
    63 	EEirManPanicSetDataPending,
       
    64 	EEirManPanicSetDataUninvited,
       
    65 	};
       
    66 
       
    67 enum TEirTag
       
    68 	{
       
    69 	EEirTagName,
       
    70 	EEirTagSdpUuid16,
       
    71 	EEirTagSdpUuid32,
       
    72 	EEirTagSdpUuid128,
       
    73 	EEirTagManufacturerSpecific,
       
    74 	EEirTagFlags,
       
    75 	EEirTagTxPowerLevel,
       
    76 	EEirTagRESERVED
       
    77 	};
       
    78 
       
    79 
       
    80 enum TEirDataMode
       
    81 	{
       
    82 	EEirDataPartial = 0,
       
    83 	EEirDataComplete,
       
    84 	};
       
    85 	
       
    86 #endif //_EIRMANSHARED_H
       
    87