/* usb/lib/selectif.h
 *
 * (c) 2002 Simtec Electronics
 *
 * Ben Dooks
 *
 * USB Library: select device interface configuration
 *
 * $Id: selectif.h,v 1.4 2003/08/06 15:56:11 ben Exp $
 *
 * This Library file is part of the Simtec Electronics USB stack development
 *   suite.
 * Specific licence is granted to use this file by third parties for the
 *   development of USB device drivers.
 *
 */

#ifndef __USB_LIB_SELECTIF_H
#define __USB_LIB_SELECTIF_H "$Id: selectif.h,v 1.4 2003/08/06 15:56:11 ben Exp $"

/** Select an setting for an interface of a device

This call selects an interface setting on a given device. 

@param dev USB device struct
@parma wait Waiting mode for notification (note, this is not copied internally)
@param interface the interface number of the interface
@param setting the setting number to apply

@memo Select an setting for an interface of a device
@see usbmsg_send
@see usbmsg_setconfig
*/

int usblib_select_if(usb_device_t dev,
		     usb_wait_t *wait,
		     int interface,
		     int setting);

#endif /* __USB_LIB_SELECTIF_H */
