/* * Java libusb wrapper * Copyright (c) 2005-2006 Andreas Schläpfer * * http://libusbjava.sourceforge.net * This library is covered by the LGPL, read LGPL.txt for details. */ package ch.ntb.usb; /** * Represents an USB interface.
* An interface is a group of alternate settings of a configuration.
* */ 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.
* * @return an array of interface descriptors */ public Usb_Interface_Descriptor[] getAltsetting() { return altsetting; } /** * Returns the number of alternate settings.
* * @return the number of alternate settings */ public int getNumAltsetting() { return num_altsetting; } }