IT. Expert System.

Android Reference

UsbEndpoint


android.hardware.usb

Class UsbEndpoint

  • All Implemented Interfaces:
    Parcelable


    public class UsbEndpoint
    extends Object
    implements Parcelable
    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.
    • Constructor Detail

      • UsbEndpoint

        public UsbEndpoint(int address,
                   int attributes,
                   int maxPacketSize,
                   int interval)
        UsbEndpoint should only be instantiated by UsbService implementation
    • Method Detail

      • getAddress

        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 getEndpointNumber() and getDirection().
        Returns:
        the endpoint's address
      • getEndpointNumber

        public int getEndpointNumber()
        Extracts the endpoint's endpoint number from its address
        Returns:
        the endpoint's endpoint number
      • getDirection

        public int getDirection()
        Returns the endpoint's direction. Returns UsbConstants.USB_DIR_OUT if the direction is host to device, and UsbConstants.USB_DIR_IN if the direction is device to host.
        Returns:
        the endpoint's direction
        See Also:
        UsbConstants#USB_DIR_IN}, UsbConstants#USB_DIR_OUT}
      • getAttributes

        public int getAttributes()
        Returns the endpoint's attributes field.
        Returns:
        the endpoint's attributes
      • getMaxPacketSize

        public int getMaxPacketSize()
        Returns the endpoint's maximum packet size.
        Returns:
        the endpoint's maximum packet size
      • getInterval

        public int getInterval()
        Returns the endpoint's interval field.
        Returns:
        the endpoint's interval
      • toString

        public String toString()
        Description copied from class: Object
        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.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.
      • describeContents

        public int describeContents()
        Description copied from interface: Parcelable
        Describe the kinds of special objects contained in this Parcelable's marshalled representation.
        Specified by:
        describeContents in interface Parcelable
        Returns:
        a bitmask indicating the set of special object types marshalled by the Parcelable.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 11858 / 248549975. Delta: 0.05634 с