|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.ntb.usb.Usb_Descriptor
ch.ntb.usb.Usb_Endpoint_Descriptor
public class Usb_Endpoint_Descriptor
Represents the descriptor of an USB endpoint.
Endpoint descriptors are used to describe endpoints other than endpoint zero.
Endpoint zero is always assumed to be a control endpoint and is configured
before any descriptors are even requested. The host will use the information
returned from these descriptors to determine the bandwidth requirements of
the bus.
The length of the configuration descriptor is
Usb_Descriptor.USB_DT_ENDPOINT_SIZE
and the type is
Usb_Descriptor.USB_DT_ENDPOINT
.
Field Summary | |
---|---|
static int |
USB_ENDPOINT_ADDRESS_MASK
Endpoint address mask (in bEndpointAddress). |
static int |
USB_ENDPOINT_DIR_MASK
Endpoint address mask (in bEndpointAddress). |
static int |
USB_ENDPOINT_TYPE_BULK
Possible endpoint types (in bmAttributes). |
static int |
USB_ENDPOINT_TYPE_CONTROL
Possible endpoint types (in bmAttributes). |
static int |
USB_ENDPOINT_TYPE_INTERRUPT
Possible endpoint types (in bmAttributes). |
static int |
USB_ENDPOINT_TYPE_ISOCHRONOUS
Possible endpoint types (in bmAttributes). |
static int |
USB_ENDPOINT_TYPE_MASK
Endpoint type mask (in bmAttributes). |
static int |
USB_MAXENDPOINTS
Maximum number of endpoints |
Fields inherited from class ch.ntb.usb.Usb_Descriptor |
---|
USB_DT_CONFIG, USB_DT_CONFIG_SIZE, USB_DT_DEVICE, USB_DT_DEVICE_SIZE, USB_DT_ENDPOINT, USB_DT_ENDPOINT_AUDIO_SIZE, USB_DT_ENDPOINT_SIZE, USB_DT_HID, USB_DT_HUB, USB_DT_HUB_NONVAR_SIZE, USB_DT_INTERFACE, USB_DT_INTERFACE_SIZE, USB_DT_PHYSICAL, USB_DT_REPORT, USB_DT_STRING |
Constructor Summary | |
---|---|
Usb_Endpoint_Descriptor()
|
Method Summary | |
---|---|
byte |
getBEndpointAddress()
Returns the endpoint address. Bits 3..0: Endpoint number Bits 6..4: Reserved. |
byte |
getBInterval()
Returns the intervall for polling endpoint data transfers. Value in frame counts. |
byte |
getBmAttributes()
Returns the attributes of this endpoint. Bits 1..0: Transfer Type (see USB_ENDPOINT_TYPE_XXX). Bits 7..2: Reserved. |
byte |
getBRefresh()
|
byte |
getBSynchAddress()
|
byte[] |
getExtra()
Returns the data of extra descriptor(s) if available. |
int |
getExtralen()
Returns the number of bytes of the extra descriptor. |
short |
getWMaxPacketSize()
Returns the maximum packet size of this endpoint is capable of sending or receiving. |
java.lang.String |
toString()
|
Methods inherited from class ch.ntb.usb.Usb_Descriptor |
---|
getBDescriptorType, getBLength |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int USB_MAXENDPOINTS
public static final int USB_ENDPOINT_ADDRESS_MASK
public static final int USB_ENDPOINT_DIR_MASK
public static final int USB_ENDPOINT_TYPE_MASK
public static final int USB_ENDPOINT_TYPE_CONTROL
public static final int USB_ENDPOINT_TYPE_ISOCHRONOUS
public static final int USB_ENDPOINT_TYPE_BULK
public static final int USB_ENDPOINT_TYPE_INTERRUPT
Constructor Detail |
---|
public Usb_Endpoint_Descriptor()
Method Detail |
---|
public byte getBEndpointAddress()
public byte getBInterval()
public byte getBmAttributes()
If isochronous endpoint: Bits 3..2: Synchronisation type 00 = No synchronisation 01 = Asynchronous 10 = Adaptive 11 = Synchronous Bits 5..4: Usage Type 00 = Data endpoint 01 = Feedback endpoint 10 = Explicit feedback data endpoint 11 = Reserved
public byte getBRefresh()
public byte getBSynchAddress()
public byte[] getExtra()
public int getExtralen()
public short getWMaxPacketSize()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |