URL
https://opencores.org/ocsvn/usb_fpga_2_04/usb_fpga_2_04/trunk
Subversion Repositories usb_fpga_2_04
[/] [usb_fpga_2_04/] [trunk/] [libusbJava-src/] [ch/] [ntb/] [usb/] [Usb_Interface.java] - Rev 2
Compare with Previous | Blame | View Log
/* * Java libusb wrapper * Copyright (c) 2005-2006 Andreas Schläpfer <spandi at users.sourceforge.net> * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. */ package ch.ntb.usb; /** * Represents an USB interface.<br> * An interface is a group of alternate settings of a configuration.<br> * */ public class Usb_Interface { /** * Maximal number of alternate settings */ public static final int USB_MAXALTSETTING = 128; /* Hard limit */ private Usb_Interface_Descriptor[] altsetting; private int num_altsetting; @Override public String toString() { return "Usb_Interface num_altsetting: 0x" + Integer.toHexString(num_altsetting); } /** * Retuns an array of interface descriptors.<br> * * @return an array of interface descriptors */ public Usb_Interface_Descriptor[] getAltsetting() { return altsetting; } /** * Returns the number of alternate settings.<br> * * @return the number of alternate settings */ public int getNumAltsetting() { return num_altsetting; } }