os/kernelhwsrv/kerneltest/e32test/usbho/t_usbdi/inc/UsbDescriptorOffsets.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 #ifndef __USB_DESCRIPTOR_OFFSETS_H
     2 #define __USB_DESCRIPTOR_OFFSETS_H
     3 
     4 /*
     5 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     6 * All rights reserved.
     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".
    11 *
    12 * Initial Contributors:
    13 * Nokia Corporation - initial contribution.
    14 *
    15 * Contributors:
    16 *
    17 * Description:
    18 * @file UsbDescriptorOffsets.h
    19 * @internalComponent
    20 * 
    21 *
    22 */
    23 
    24 
    25 
    26 
    27 #include <e32base.h>
    28 
    29 namespace NUnitTesting_USBDI
    30 	{
    31 
    32 // USB Device Descriptor
    33 
    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;
    46 
    47 // USB Configuration Descriptor
    48 
    49 extern const TInt KConfDescOffset_bNumInterfaces;
    50 extern const TInt KConfDescOffset_bConfigurationValue;
    51 extern const TInt KConfDescOffset_iConfiguration;
    52 extern const TInt KConfDescOffset_bMaxPower;
    53 	
    54 // USB Interface Descriptor
    55 
    56 extern const TInt KIntDescOffset_bInterfaceNumber;
    57 extern const TInt KIntDescOffset_bAlternateSetting;
    58 extern const TInt KIntDescOffset_bNumEndpoints;
    59 extern const TInt KIntDescOffset_iInterface;
    60 
    61 // USB String Descriptor 0
    62 	
    63 extern const TInt KStrDescZeroOffset_bLength;
    64 extern const TInt KStrDescZeroOffset_bDescriptorType;
    65 extern const TInt KStrDescZeroOffset_wLANGID0;
    66 	
    67 // USB String Descriptor
    68 
    69 extern const TInt KStrDescOffset_bLength;
    70 extern const TInt KStrDescOffset_bDescriptorType;
    71 extern const TInt KStrDescOffset_bString;
    72 	
    73 	}
    74 
    75 
    76 #endif