Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

Description

Set the alternate setting of an interface.

Files

usbdev_api.c

Prototype

Arguments

dev

General handle to device.

if_nbr

Interface number.

alt_set

Alternate setting number.

p_err

Pointer to variable that will receive the return error code from this function:

ERROR_SUCCESS
ERROR_INVALID_HANDLE
ERROR_INVALID_PARAMETER

Returned Value

None.

Callers

Application.

Notes / Warnings

This function sends a SET_INTERFACE request to the device to set the alternate setting number and updates the one used internally by WinUSB. 

  • No labels