sl@0
|
1 |
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// @file usbdescriptoroffsets.cpp
|
sl@0
|
15 |
// @internalComponent
|
sl@0
|
16 |
//
|
sl@0
|
17 |
//
|
sl@0
|
18 |
|
sl@0
|
19 |
#include "UsbDescriptorOffsets.h"
|
sl@0
|
20 |
|
sl@0
|
21 |
|
sl@0
|
22 |
namespace NUnitTesting_USBDI
|
sl@0
|
23 |
{
|
sl@0
|
24 |
|
sl@0
|
25 |
// USB Device Descriptor
|
sl@0
|
26 |
|
sl@0
|
27 |
const TInt KDevDescOffset_bcdUSB(2);
|
sl@0
|
28 |
const TInt KDevDescOffset_bDeviceClass(4);
|
sl@0
|
29 |
const TInt KDevDescOffset_bDeviceSubClass(5);
|
sl@0
|
30 |
const TInt KDevDescOffset_bDeviceProtocol(6);
|
sl@0
|
31 |
const TInt KDevDescOffset_bMaxPacketSize(7); // For Ep0
|
sl@0
|
32 |
const TInt KDevDescOffset_idVendor(8);
|
sl@0
|
33 |
const TInt KDevDescOffset_idProduct(10);
|
sl@0
|
34 |
const TInt KDevDescOffset_bcdDevice(12);
|
sl@0
|
35 |
const TInt KDevDescOffset_iManufacturer(14);
|
sl@0
|
36 |
const TInt KDevDescOffset_iProduct(15);
|
sl@0
|
37 |
const TInt KDevDescOffset_iSerialNumber(16);
|
sl@0
|
38 |
const TInt KDevDescOffset_bNumConfigurations(17);
|
sl@0
|
39 |
|
sl@0
|
40 |
// USB Configuration Descriptor
|
sl@0
|
41 |
|
sl@0
|
42 |
const TInt KConfDescOffset_bNumInterfaces(4);
|
sl@0
|
43 |
const TInt KConfDescOffset_bConfigurationValue(5);
|
sl@0
|
44 |
const TInt KConfDescOffset_iConfiguration(6);
|
sl@0
|
45 |
const TInt KConfDescOffset_bMaxPower(8);
|
sl@0
|
46 |
|
sl@0
|
47 |
// USB Interface Descriptor
|
sl@0
|
48 |
|
sl@0
|
49 |
const TInt KIntDescOffset_bInterfaceNumber(2);
|
sl@0
|
50 |
const TInt KIntDescOffset_bAlternateSetting(3);
|
sl@0
|
51 |
const TInt KIntDescOffset_bNumEndpoints(4);
|
sl@0
|
52 |
const TInt KIntDescOffset_iInterface(8);
|
sl@0
|
53 |
|
sl@0
|
54 |
// USB String Descriptor 0
|
sl@0
|
55 |
|
sl@0
|
56 |
const TInt KStrDescZeroOffset_bLength(0);
|
sl@0
|
57 |
const TInt KStrDescZeroOffset_bDescriptorType(1);
|
sl@0
|
58 |
const TInt KStrDescZeroOffset_wLANGID0(2);
|
sl@0
|
59 |
|
sl@0
|
60 |
// USB String Descriptor
|
sl@0
|
61 |
|
sl@0
|
62 |
const TInt KStrDescOffset_bLength(0);
|
sl@0
|
63 |
const TInt KStrDescOffset_bDescriptorType(1);
|
sl@0
|
64 |
const TInt KStrDescOffset_bString(2);
|
sl@0
|
65 |
|
sl@0
|
66 |
}
|