Platforms to show: All Mac Windows Linux Cross-Platform
Back to LibUSBDeviceMBS class.
LibUSBDeviceMBS.SetInterfaceAltSetting(interfaceNumber as Integer, alternateSetting as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | USB | MBS USB Plugin | 18.1 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
The interface must have been previously claimed with ClaimInterface().
You should always use this function rather than formulating your own SET_INTERFACE control request. This is because the underlying operating system needs to know when such changes happen.
This is a blocking function.
Parameters:
interfaceNumber | the InterfaceNumber of the previously-claimed interface |
alternateSetting | the AlternateSetting of the alternate setting to activate |
The lasterror:
0 on success
kErrorNotFound if the interface was not claimed, or the requested alternate setting does not exist
kErrorNoDevice if the device has been disconnected
another error code on other failure
The items on this page are in the following plugins: MBS USB Plugin.