bluetoothappprofiles/avrcp/absolutevolumeapi/public/absolutevolumeapi.h
changeset 70 f5508c13dfe0
parent 67 16e4b9007960
child 71 083fd884d7dd
equal deleted inserted replaced
67:16e4b9007960 70:f5508c13dfe0
     1 // Copyright (c) 2008-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 
       
    18 /**
       
    19  @file
       
    20  @publishedAll
       
    21  @released
       
    22 */
       
    23 
       
    24 #ifndef ABSOLUTEVOLUMEAPI_H_
       
    25 #define ABSOLUTEVOLUMEAPI_H_
       
    26 
       
    27 #include <e32base.h>
       
    28 
       
    29 const TInt KRemConAbsoluteVolumeControllerApiUid = 0x1020831E;
       
    30 const TInt KRemConAbsoluteVolumeTargetApiUid = 0x10215bbd;
       
    31 
       
    32 const TInt KErrAbsoluteVolumeInternalError     = -6537;
       
    33 
       
    34 /**
       
    35 Error code(4 bytes) + The relative volume(4 bytes) + 
       
    36 The maximum volume against which volume is relative(4 bytes)
       
    37 */
       
    38 const TUint KAbsoluteVolumeResponseDataSize = 12;
       
    39 
       
    40 /** Operation Id of set absolute volume */
       
    41 const TUint    KRemConSetAbsoluteVolume						= 0x1050;
       
    42 /** Operation Id of register volume change notification */
       
    43 const TUint    KRemConAbsoluteVolumeNotification			= 0x0d31;
       
    44 
       
    45 /**
       
    46 The relative volume to be set(4 bytes) + 
       
    47 The maximum volume against which volume is relative(4 bytes) + 
       
    48 Reserved(4 bytes)
       
    49 */
       
    50 const TInt KAbsoluteVolumeRequestDataSize = 12;
       
    51 
       
    52 /**
       
    53 The absolute volume is represented in one octet. The top bit(bit 7)
       
    54 is reserved for future use.
       
    55 */
       
    56 const TUint8 KAbsoluteVolumeMask = 0x7f;
       
    57 
       
    58 /** PDU length of set absolute volume response */
       
    59 const TUint8 KLengthSetAbsoluteVolumeResponse = 11;
       
    60 /** PDU length of notify volume change response */
       
    61 const TUint8 KLengthNotifyVolumeChangeResponse = 12;
       
    62 
       
    63 /** Absolute Volume(1 byte) */
       
    64 const TUint8 KLengthSetAbsoluteVolumeRequestParameter = 1;
       
    65 /** Event ID(1 byte) + Reserved(4 bytes) */
       
    66 const TUint8 KLengthNotifyVolumeChangeRequestParameter = 5;
       
    67 
       
    68 /** Absolute Volume(1 byte) */
       
    69 const TUint8 KLengthSetAbsoluteVolumeResponseParamter = 1;
       
    70 /** Event ID(1 byte) + Absolute Volume(1 byte) */
       
    71 const TUint8 KLengthNotifyVolumeChangeResponseParameter = 2;
       
    72 	
       
    73 #endif /*ABSOLUTEVOLUMEAPI_H_*/