Update contrib.
1 #ifndef __USB_DESCRIPTOR_OFFSETS_H
2 #define __USB_DESCRIPTOR_OFFSETS_H
5 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
7 * This component and the accompanying materials are made available
8 * under the terms of the License "Eclipse Public License v1.0"
9 * which accompanies this distribution, and is available
10 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
12 * Initial Contributors:
13 * Nokia Corporation - initial contribution.
18 * @file UsbDescriptorOffsets.h
29 namespace NUnitTesting_USBDI
32 // USB Device Descriptor
34 extern const TInt KDevDescOffset_bcdUSB;
35 extern const TInt KDevDescOffset_bDeviceClass;
36 extern const TInt KDevDescOffset_bDeviceSubClass;
37 extern const TInt KDevDescOffset_bDeviceProtocol;
38 extern const TInt KDevDescOffset_bMaxPacketSize; // For Ep0
39 extern const TInt KDevDescOffset_idVendor;
40 extern const TInt KDevDescOffset_idProduct;
41 extern const TInt KDevDescOffset_bcdDevice;
42 extern const TInt KDevDescOffset_iManufacturer;
43 extern const TInt KDevDescOffset_iProduct;
44 extern const TInt KDevDescOffset_iSerialNumber;
45 extern const TInt KDevDescOffset_bNumConfigurations;
47 // USB Configuration Descriptor
49 extern const TInt KConfDescOffset_bNumInterfaces;
50 extern const TInt KConfDescOffset_bConfigurationValue;
51 extern const TInt KConfDescOffset_iConfiguration;
52 extern const TInt KConfDescOffset_bMaxPower;
54 // USB Interface Descriptor
56 extern const TInt KIntDescOffset_bInterfaceNumber;
57 extern const TInt KIntDescOffset_bAlternateSetting;
58 extern const TInt KIntDescOffset_bNumEndpoints;
59 extern const TInt KIntDescOffset_iInterface;
61 // USB String Descriptor 0
63 extern const TInt KStrDescZeroOffset_bLength;
64 extern const TInt KStrDescZeroOffset_bDescriptorType;
65 extern const TInt KStrDescZeroOffset_wLANGID0;
67 // USB String Descriptor
69 extern const TInt KStrDescOffset_bLength;
70 extern const TInt KStrDescOffset_bDescriptorType;
71 extern const TInt KStrDescOffset_bString;