|
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 @released |
|
20 */ |
|
21 |
|
22 #ifndef REMCONSTATUSAPI_H |
|
23 #define REMCONSTATUSAPI_H |
|
24 |
|
25 #include <e32base.h> |
|
26 |
|
27 const TUint KRemConStatusApiMaxOperationSpecificDataSize = 10; |
|
28 |
|
29 //-------------------------------------------------------------------------- |
|
30 // Unit info response data format |
|
31 //-------------------------------------------------------------------------- |
|
32 |
|
33 /** Length of the VendorId field in bytes. */ |
|
34 const TUint KRemConStatusApiVendorIdLength = 3; |
|
35 |
|
36 /** Offset for VendorId field */ |
|
37 const TUint KRemConStatusApiVendorIdOffset = 0; |
|
38 |
|
39 /** Length of the Unit field in bytes. */ |
|
40 const TUint KRemConStatusApiUnitLength = 1; |
|
41 |
|
42 /** Offset for Unit field */ |
|
43 const TUint KRemConStatusApiUnitOffset = KRemConStatusApiVendorIdLength; |
|
44 |
|
45 /** Length of the Unit type field in bytes. */ |
|
46 const TUint KRemConStatusApiUnitTypeLength = 1; |
|
47 |
|
48 /** Offset for Unit type field */ |
|
49 const TUint KRemConStatusApiUnitTypeOffset = KRemConStatusApiVendorIdLength + KRemConStatusApiUnitLength; |
|
50 |
|
51 /** Length of the Extended Unit type field in bytes. */ |
|
52 const TUint KRemConStatusApiExtendedUnitTypeLength = 2; |
|
53 |
|
54 /** Offset for Extended Unit type field. |
|
55 |
|
56 This data is only valid if Unit type is 0x1e. |
|
57 The second byte is only valid if the first byte is 0xff. |
|
58 See AV/C general specification for details. |
|
59 */ |
|
60 const TUint KRemConStatusApiExtendedUnitTypeOffset = |
|
61 KRemConStatusApiVendorIdLength + KRemConStatusApiUnitLength +KRemConStatusApiUnitTypeLength; |
|
62 |
|
63 //-------------------------------------------------------------------------- |
|
64 // SubUnit info response data format |
|
65 //-------------------------------------------------------------------------- |
|
66 |
|
67 /** Length of the page field in bytes. */ |
|
68 const TUint KRemConStatusApiPageLength = 1; |
|
69 |
|
70 /** Offset for page field */ |
|
71 const TUint KRemConStatusApiPageOffset = 0; |
|
72 |
|
73 /** Length of the extension field in bytes. */ |
|
74 const TUint KRemConStatusApiExtensionLength = 1; |
|
75 |
|
76 /** Offset for extension field */ |
|
77 const TUint KRemConStatusApiExtensionOffset = KRemConStatusApiPageLength; |
|
78 |
|
79 /** Length of the page data field in bytes. |
|
80 |
|
81 This is defined as being all data from KRemConStatusApiPageDataOffset |
|
82 to the end of the response data. |
|
83 */ |
|
84 |
|
85 /** Offset for page data field */ |
|
86 const TUint KRemConStatusApiPageDataOffset = KRemConStatusApiPageLength + KRemConStatusApiExtensionLength; |
|
87 |
|
88 //-------------------------------------------------------------------------- |
|
89 // Interface Data |
|
90 //-------------------------------------------------------------------------- |
|
91 |
|
92 /** |
|
93 The UID identifying this outer-layer RemCon interface. |
|
94 */ |
|
95 const TInt KRemConStatusApiUid = 0x10207ea5; |
|
96 |
|
97 /** |
|
98 Operation ids belonging to the Status API. |
|
99 */ |
|
100 enum TRemConStatusApiOperationId |
|
101 { |
|
102 ERemConStatusApiUnitInfo = 0x00, |
|
103 ERemConStatusApiSubunitInfo = 0x01, |
|
104 }; |
|
105 |
|
106 #endif // REMCONSTATUSAPI_H |