Download WinDriver™ USB User`s Manual

Transcript
B.4 USB Functions
B.4.2
148
WDU_SetInterface()
P URPOSE
• Sets the alternate setting for the specified interface.
P ROTOTYPE
DWORD W D U _ S e t I n t e r f a c e (
WDU_DEVICE_HANDLE hDevice ,
DWORD d w I n t e r f a c e N u m ,
DWORD d w A l t e r n a t e S e t t i n g ) ;
PARAMETERS
Name
➢ hDevice
➢ dwInterfaceNum
➢ dwAlternateSetting
Type
WDU_DEVICE_HANDLE
DWORD
DWORD
D ESCRIPTION
Name
hDevice
dwInterfaceNum
dwAlternateSetting
Description
A unique identifier for the device/interface
The interface’s number
The desired alternate setting value
R ETURN VALUE
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code
otherwise [B.8].
Input/Output
Input
Input
Input