public class Usb_Endpoint_Descriptor extends Usb_Descriptor
Usb_Descriptor.USB_DT_ENDPOINT_SIZE
and the type is
Usb_Descriptor.USB_DT_ENDPOINT
.Modifier and Type | Field and Description |
---|---|
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
|
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 and Description |
---|
Usb_Endpoint_Descriptor() |
Modifier and Type | Method and Description |
---|---|
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() |
getBDescriptorType, getBLength
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
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