javax.usb
Interface UsbEndpoint

All Known Implementing Classes:
UsbEndpointImp

public interface UsbEndpoint

Interface for a USB endpoint.

Author:
Dan Streetman

Method Summary
 byte getDirection()
          Get this endpoint's direction.
 byte getType()
          Get this endpoint's type.
 UsbEndpointDescriptor getUsbEndpointDescriptor()
          Get the descriptor for this UsbEndpoint.
 UsbInterface getUsbInterface()
          Get the parent UsbInterface that this UsbEndpoint belongs to.
 UsbPipe getUsbPipe()
          Get the UsbPipe for this UsbEndpoint.
 

Method Detail

getUsbInterface

UsbInterface getUsbInterface()
Get the parent UsbInterface that this UsbEndpoint belongs to.

Returns:
The parent interface.

getUsbEndpointDescriptor

UsbEndpointDescriptor getUsbEndpointDescriptor()
Get the descriptor for this UsbEndpoint.

The descriptor may be cached.

Returns:
The descriptor for this UsbEndpoint.

getDirection

byte getDirection()
Get this endpoint's direction.

This is the logical AND of the direction mask and the endpoint descriptor's address.

Returns:
This endpoint's direction.
See Also:
UsbConst.ENDPOINT_DIRECTION_IN, UsbConst.ENDPOINT_DIRECTION_OUT

getType

byte getType()
Get this endpoint's type.

This is the logical AND of the type mask and the endpoint descriptor's attributes.

Returns:
This endpoint's type.
See Also:
UsbConst.ENDPOINT_TYPE_CONTROL, UsbConst.ENDPOINT_TYPE_BULK, UsbConst.ENDPOINT_TYPE_INTERRUPT, UsbConst.ENDPOINT_TYPE_ISOCHRONOUS

getUsbPipe

UsbPipe getUsbPipe()
Get the UsbPipe for this UsbEndpoint.

This is the only method of communication to this endpoint.

Returns:
This UsbEndpoint's UsbPipe.