Contents

selectAlternateSetting(_:)

Selects an alternative setting for the interface.

Declaration

func selectAlternateSetting(_ alternateSetting: Int) throws

Parameters

  • alternateSetting:

    The alternative interface number to activate.

Discussion

Use this method to select an alternative setting for the interface. The operation aborts all pending input/output requests on the interface’s pipes, and closes all open pipes. It also selects the new alternative setting through the SET_INTERFACE control request (See USB 3.2, 9.4.10.).

See Also

Managing Pipes