Platforms to show: All Mac Windows Linux Cross-Platform

Back to LibUSBDeviceMBS class.

Previous items

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
Activate an alternate setting for an interface.

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:
interfaceNumberthe InterfaceNumber of the previously-claimed interface
alternateSettingthe 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

Previous items

The items on this page are in the following plugins: MBS USB Plugin.


The biggest plugin in space...