Code example for UsbEndpoint

Methods: getDirection

0
        final int attrs = ep.getAttributes();
        return "" + attrs;
    } 
 
    public static String getDirectionString(UsbEndpoint ep) {
        final int d = ep.getDirection();
        return (d == UsbConstants.USB_DIR_IN) ? "IN" : "OUT";
    } 
 
    public static String getIntervalString(UsbEndpoint ep) {
        final int interval = ep.getInterval();
        return "" + interval;
    } 
 
    public static String getMaxPacketSizeString(UsbEndpoint ep) {
        final int size = ep.getMaxPacketSize();
        return "" + size;
    } 
 
    public static String getTypeString(UsbEndpoint ep) {
        switch (ep.getType()) {