|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 package com.nokia.carbide.remoteconnections.discovery.pccs.pccsnative; |
|
18 |
|
19 import com.sun.jna.Structure; |
|
20 |
|
21 /** |
|
22 * This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br> |
|
23 * but modified for use by Carbide. |
|
24 */ |
|
25 public class UP_CONFIGURATION_DESCRIPTOR extends Structure { |
|
26 /// Size of the structure |
|
27 public int dwSize; |
|
28 /// CONFIGURATION Descriptor Type |
|
29 public byte bDescriptorType; |
|
30 /// Total length of data returned for this configuration |
|
31 public int dwTotalLength; |
|
32 /// Number of interfaces supported by this configuration |
|
33 public byte bNumOfInterfaces; |
|
34 /// Value to use as an argument to the SetConfiguration() request to select this configuration |
|
35 public byte bConfigurationValue; |
|
36 /// Index of string descriptor describing this configuration |
|
37 public byte bConfiguration; |
|
38 /// Configuration characteristics |
|
39 public byte bAttributes; |
|
40 /// Maximum power consumption of the USB device from the bus |
|
41 public byte bMaxPower; |
|
42 public UP_CONFIGURATION_DESCRIPTOR() { |
|
43 super(); |
|
44 } |
|
45 /** |
|
46 * @param dwSize Size of the structure<br> |
|
47 * @param bDescriptorType CONFIGURATION Descriptor Type<br> |
|
48 * @param dwTotalLength Total length of data returned for this configuration<br> |
|
49 * @param bNumOfInterfaces Number of interfaces supported by this configuration<br> |
|
50 * @param bConfigurationValue Value to use as an argument to the SetConfiguration() request to select this configuration<br> |
|
51 * @param bConfiguration Index of string descriptor describing this configuration<br> |
|
52 * @param bAttributes Configuration characteristics<br> |
|
53 * @param bMaxPower Maximum power consumption of the USB device from the bus |
|
54 */ |
|
55 public UP_CONFIGURATION_DESCRIPTOR(int dwSize, byte bDescriptorType, int dwTotalLength, byte bNumOfInterfaces, byte bConfigurationValue, byte bConfiguration, byte bAttributes, byte bMaxPower) { |
|
56 super(); |
|
57 this.dwSize = dwSize; |
|
58 this.bDescriptorType = bDescriptorType; |
|
59 this.dwTotalLength = dwTotalLength; |
|
60 this.bNumOfInterfaces = bNumOfInterfaces; |
|
61 this.bConfigurationValue = bConfigurationValue; |
|
62 this.bConfiguration = bConfiguration; |
|
63 this.bAttributes = bAttributes; |
|
64 this.bMaxPower = bMaxPower; |
|
65 } |
|
66 protected ByReference newByReference() { return new ByReference(); } |
|
67 protected ByValue newByValue() { return new ByValue(); } |
|
68 protected UP_CONFIGURATION_DESCRIPTOR newInstance() { return new UP_CONFIGURATION_DESCRIPTOR(); } |
|
69 public static UP_CONFIGURATION_DESCRIPTOR[] newArray(int arrayLength) { |
|
70 return null; |
|
71 // return com.ochafik.lang.jnaerator.runtime.Structure.newArray(UP_CONFIGURATION_DESCRIPTOR.class, arrayLength); |
|
72 } |
|
73 public static class ByReference extends UP_CONFIGURATION_DESCRIPTOR implements com.sun.jna.Structure.ByReference {} |
|
74 public static class ByValue extends UP_CONFIGURATION_DESCRIPTOR implements com.sun.jna.Structure.ByValue {} |
|
75 |
|
76 } |