|
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 "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 "mtpusbdatatypeconstants.h" |
|
22 #include "tmtpusbcontrolrequestmodfunction.h" |
|
23 |
|
24 // Dataset element metadata. |
|
25 const TMTPUsbControlRequestMODFunction::TElementInfo TMTPUsbControlRequestMODFunction::iElementMetaData[ENumElements] = |
|
26 { |
|
27 {EMTPTypeUINT32, 0, KMTPTypeUINT32Size}, // EdwLength |
|
28 {EMTPTypeUINT16, 4, KMTPTypeUINT16Size}, // EbcdVersion |
|
29 {EMTPTypeUINT16, 6, KMTPTypeUINT16Size}, // EwIndex |
|
30 {EMTPTypeUINT8, 8, KMTPTypeUINT8Size}, // EbCount |
|
31 {EMTPTypeUINT8, 9, KMTPTypeUINT8Size}, // EReserved1 |
|
32 {EMTPTypeUINT8, 10, KMTPTypeUINT8Size}, // EReserved2 |
|
33 {EMTPTypeUINT8, 11, KMTPTypeUINT8Size}, // EReserved3 |
|
34 {EMTPTypeUINT8, 12, KMTPTypeUINT8Size}, // EReserved4 |
|
35 {EMTPTypeUINT8, 13, KMTPTypeUINT8Size}, // EReserved5 |
|
36 {EMTPTypeUINT8, 14, KMTPTypeUINT8Size}, // EReserved6 |
|
37 {EMTPTypeUINT8, 15, KMTPTypeUINT8Size}, // EReserved7 |
|
38 {EMTPTypeUINT8, 16, KMTPTypeUINT8Size}, // EbFirstInterfaceNo |
|
39 {EMTPTypeUINT8, 17, KMTPTypeUINT8Size}, // EbInterfaceCount |
|
40 {EMTPTypeUINT64, 18, KMTPTypeUINT64Size}, // EcompatibleID |
|
41 {EMTPTypeUINT64, 26, KMTPTypeUINT64Size}, // EsubCompatibleID |
|
42 {EMTPTypeUINT8, 34, KMTPTypeUINT8Size}, // EReserved8 |
|
43 {EMTPTypeUINT8, 35, KMTPTypeUINT8Size}, // EReserved9 |
|
44 {EMTPTypeUINT8, 36, KMTPTypeUINT8Size}, // EReserved10 |
|
45 {EMTPTypeUINT8, 37, KMTPTypeUINT8Size}, // EReserved11 |
|
46 {EMTPTypeUINT8, 38, KMTPTypeUINT8Size}, // EReserved12 |
|
47 {EMTPTypeUINT8, 39, KMTPTypeUINT8Size}, // EReserved13 |
|
48 }; |
|
49 |
|
50 /** |
|
51 Constructor |
|
52 */ |
|
53 EXPORT_C TMTPUsbControlRequestMODFunction::TMTPUsbControlRequestMODFunction() : |
|
54 iElementInfo(iElementMetaData, ENumElements), |
|
55 iBuffer(KSize) |
|
56 { |
|
57 SetBuffer(iBuffer); |
|
58 } |
|
59 |
|
60 EXPORT_C TUint TMTPUsbControlRequestMODFunction::Type() const |
|
61 { |
|
62 return EMTPUsbTypeControlRequestMODFunction; |
|
63 } |
|
64 |
|
65 EXPORT_C const TMTPTypeFlatBase::TElementInfo& TMTPUsbControlRequestMODFunction::ElementInfo(TInt aElementId) const |
|
66 { |
|
67 __ASSERT_DEBUG((aElementId < ENumElements), User::Invariant()); |
|
68 return iElementInfo[aElementId]; |
|
69 } |
|
70 |