java.lang.Object | |
↳ | android.hardware.usb.UsbEndpoint |
A class representing an endpoint on a
UsbInterface
.
Endpoints are the channels for sending and receiving data over USB.
Typically bulk endpoints are used for sending non-trivial amounts of data.
Interrupt endpoints are used for sending small amounts of data, typically events,
separately from the main data streams.
The endpoint zero is a special endpoint for control messages sent from the host
to device.
Isochronous endpoints are currently unsupported.
[Expand]
Inherited Constants
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
||||||||||
|
Returns the endpoint's address field.
|
||||||||||
|
Returns the endpoint's attributes field.
|
||||||||||
|
Returns the endpoint's direction.
|
||||||||||
|
Extracts the endpoint's endpoint number from its address
|
||||||||||
|
Returns the endpoint's interval field.
|
||||||||||
|
Returns the endpoint's maximum packet size.
|
||||||||||
|
Returns the endpoint's type.
|
||||||||||
|
Returns a string containing a concise, human-readable description of this
object.
|
||||||||||
|
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
From interface
android.os.Parcelable
|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
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
getEndpointNumber()
and
getDirection()
.
Returns the endpoint's attributes field.
Returns the endpoint's direction.
Returns
USB_DIR_OUT
if the direction is host to device, and
USB_DIR_IN
if the
direction is device to host.
Extracts the endpoint's endpoint number from its address
Returns the endpoint's interval field.
Returns the endpoint's maximum packet size.
Returns the endpoint's type. Possible results are:
USB_ENDPOINT_XFER_CONTROL
(endpoint zero)
USB_ENDPOINT_XFER_ISOC
(isochronous endpoint)
USB_ENDPOINT_XFER_BULK
(bulk endpoint)
USB_ENDPOINT_XFER_INT
(interrupt endpoint)
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See
Writing a useful
toString
method
if you intend implementing your own
toString
method.
Flatten this object in to a Parcel.
parcel | The Parcel in which the object should be written. |
---|---|
flags |
Additional flags about how the object should be written.
May be 0 or
PARCELABLE_WRITE_RETURN_VALUE
.
|