sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // @file usbdescriptoroffsets.cpp sl@0: // @internalComponent sl@0: // sl@0: // sl@0: sl@0: #include "UsbDescriptorOffsets.h" sl@0: sl@0: sl@0: namespace NUnitTesting_USBDI sl@0: { sl@0: sl@0: // USB Device Descriptor sl@0: sl@0: const TInt KDevDescOffset_bcdUSB(2); sl@0: const TInt KDevDescOffset_bDeviceClass(4); sl@0: const TInt KDevDescOffset_bDeviceSubClass(5); sl@0: const TInt KDevDescOffset_bDeviceProtocol(6); sl@0: const TInt KDevDescOffset_bMaxPacketSize(7); // For Ep0 sl@0: const TInt KDevDescOffset_idVendor(8); sl@0: const TInt KDevDescOffset_idProduct(10); sl@0: const TInt KDevDescOffset_bcdDevice(12); sl@0: const TInt KDevDescOffset_iManufacturer(14); sl@0: const TInt KDevDescOffset_iProduct(15); sl@0: const TInt KDevDescOffset_iSerialNumber(16); sl@0: const TInt KDevDescOffset_bNumConfigurations(17); sl@0: sl@0: // USB Configuration Descriptor sl@0: sl@0: const TInt KConfDescOffset_bNumInterfaces(4); sl@0: const TInt KConfDescOffset_bConfigurationValue(5); sl@0: const TInt KConfDescOffset_iConfiguration(6); sl@0: const TInt KConfDescOffset_bMaxPower(8); sl@0: sl@0: // USB Interface Descriptor sl@0: sl@0: const TInt KIntDescOffset_bInterfaceNumber(2); sl@0: const TInt KIntDescOffset_bAlternateSetting(3); sl@0: const TInt KIntDescOffset_bNumEndpoints(4); sl@0: const TInt KIntDescOffset_iInterface(8); sl@0: sl@0: // USB String Descriptor 0 sl@0: sl@0: const TInt KStrDescZeroOffset_bLength(0); sl@0: const TInt KStrDescZeroOffset_bDescriptorType(1); sl@0: const TInt KStrDescZeroOffset_wLANGID0(2); sl@0: sl@0: // USB String Descriptor sl@0: sl@0: const TInt KStrDescOffset_bLength(0); sl@0: const TInt KStrDescOffset_bDescriptorType(1); sl@0: const TInt KStrDescOffset_bString(2); sl@0: sl@0: }