Methods Summary |
---|
public int | describeContents()
return 0;
|
public int | getAddress()Returns the endpoint's address field.
The address is a bitfield containing both the endpoint number
as well as the data direction of the endpoint.
the endpoint number and direction can also be accessed via
{@link #getEndpointNumber} and {@link #getDirection}.
return mAddress;
|
public int | getAttributes()Returns the endpoint's attributes field.
return mAttributes;
|
public int | getDirection()Returns the endpoint's direction.
Returns {@link UsbConstants#USB_DIR_OUT}
if the direction is host to device, and
{@link UsbConstants#USB_DIR_IN} if the
direction is device to host.
return mAddress & UsbConstants.USB_ENDPOINT_DIR_MASK;
|
public int | getEndpointNumber()Extracts the endpoint's endpoint number from its address
return mAddress & UsbConstants.USB_ENDPOINT_NUMBER_MASK;
|
public int | getInterval()Returns the endpoint's interval field.
return mInterval;
|
public int | getMaxPacketSize()Returns the endpoint's maximum packet size.
return mMaxPacketSize;
|
public int | getType()Returns the endpoint's type.
Possible results are:
- {@link UsbConstants#USB_ENDPOINT_XFER_CONTROL} (endpoint zero)
- {@link UsbConstants#USB_ENDPOINT_XFER_ISOC} (isochronous endpoint)
- {@link UsbConstants#USB_ENDPOINT_XFER_BULK} (bulk endpoint)
- {@link UsbConstants#USB_ENDPOINT_XFER_INT} (interrupt endpoint)
return mAttributes & UsbConstants.USB_ENDPOINT_XFERTYPE_MASK;
|
public java.lang.String | toString()
return "UsbEndpoint[mAddress=" + mAddress + ",mAttributes=" + mAttributes +
",mMaxPacketSize=" + mMaxPacketSize + ",mInterval=" + mInterval +"]";
|
public void | writeToParcel(android.os.Parcel parcel, int flags)
parcel.writeInt(mAddress);
parcel.writeInt(mAttributes);
parcel.writeInt(mMaxPacketSize);
parcel.writeInt(mInterval);
|