Package ch.ntb.usb
Class Usb_Descriptor
java.lang.Object
ch.ntb.usb.Usb_Descriptor
- Direct Known Subclasses:
Usb_Config_Descriptor
,Usb_Device_Descriptor
,Usb_Endpoint_Descriptor
,Usb_Interface_Descriptor
Common USB descriptor values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Descriptor types.static final int
Descriptor sizes per descriptor type.static final int
Descriptor types.static final int
Descriptor sizes per descriptor type.static final int
Descriptor types.static final int
Descriptor sizes per descriptor type.static final int
Descriptor sizes per descriptor type.static final int
Descriptor types.static final int
Descriptor types.static final int
Descriptor sizes per descriptor type.static final int
Descriptor types.static final int
Descriptor sizes per descriptor type.static final int
Descriptor types.static final int
Descriptor types.static final int
Descriptor types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte
Get the type of this descriptor.byte
Get the size of this descriptor in bytes.
-
Field Details
-
USB_DT_DEVICE
public static final int USB_DT_DEVICEDescriptor types.- See Also:
-
USB_DT_CONFIG
public static final int USB_DT_CONFIGDescriptor types.- See Also:
-
USB_DT_STRING
public static final int USB_DT_STRINGDescriptor types.- See Also:
-
USB_DT_INTERFACE
public static final int USB_DT_INTERFACEDescriptor types.- See Also:
-
USB_DT_ENDPOINT
public static final int USB_DT_ENDPOINTDescriptor types.- See Also:
-
USB_DT_HID
public static final int USB_DT_HIDDescriptor types.- See Also:
-
USB_DT_REPORT
public static final int USB_DT_REPORTDescriptor types.- See Also:
-
USB_DT_PHYSICAL
public static final int USB_DT_PHYSICALDescriptor types.- See Also:
-
USB_DT_HUB
public static final int USB_DT_HUBDescriptor types.- See Also:
-
USB_DT_DEVICE_SIZE
public static final int USB_DT_DEVICE_SIZEDescriptor sizes per descriptor type.- See Also:
-
USB_DT_CONFIG_SIZE
public static final int USB_DT_CONFIG_SIZEDescriptor sizes per descriptor type.- See Also:
-
USB_DT_INTERFACE_SIZE
public static final int USB_DT_INTERFACE_SIZEDescriptor sizes per descriptor type.- See Also:
-
USB_DT_ENDPOINT_SIZE
public static final int USB_DT_ENDPOINT_SIZEDescriptor sizes per descriptor type.- See Also:
-
USB_DT_ENDPOINT_AUDIO_SIZE
public static final int USB_DT_ENDPOINT_AUDIO_SIZEDescriptor sizes per descriptor type.- See Also:
-
USB_DT_HUB_NONVAR_SIZE
public static final int USB_DT_HUB_NONVAR_SIZEDescriptor sizes per descriptor type.- See Also:
-
-
Constructor Details
-
Usb_Descriptor
public Usb_Descriptor()
-
-
Method Details
-
getBDescriptorType
public byte getBDescriptorType()Get the type of this descriptor.- Returns:
- the type of this descriptor
-
getBLength
public byte getBLength()Get the size of this descriptor in bytes.- Returns:
- the size of this descriptor in bytes
-