Code example for UsbEndpoint

Methods: getType

0
        final int size = ep.getMaxPacketSize();
        return "" + size;
    } 
 
    public static String getTypeString(UsbEndpoint ep) {
        switch (ep.getType()) {
            case UsbConstants.USB_ENDPOINT_XFER_CONTROL:
                return "Control"; 
            case UsbConstants.USB_ENDPOINT_XFER_INT:
                return "Interrupt"; 
            case UsbConstants.USB_ENDPOINT_XFER_BULK:
                return "Bulk"; 
            case UsbConstants.USB_ENDPOINT_XFER_ISOC:
                return "Isochronous"; 
            default: 
                return "Unknown"; 
        } 
    } 
 
    private static final String to2HexString(int value) {
        if (value < 0 || 0xff < value) {