Code example for UsbDevice

Methods: getProductId

0
        final int vid = dev.getVendorId();
        return to4HexString(vid);
    } 
 
    public static String getPidString(UsbDevice dev) {
        final int pid = dev.getProductId();
        return to4HexString(pid);
    } 
 
    /* 
     * UsbInterface の値を文字列化するためのメソッド群 
     */ 
     
     
    public static String getIdString(UsbInterface iface) {
        final int id = iface.getId();
        return "" + id;
    } 
 
    public static String getClassString(UsbInterface iface) {
        final int clazz = iface.getInterfaceClass();