def set_interface(dev, bInterfaceNumber, bAlternateSetting):
    """Set the alternate setting of the interface.

    dev is the Device object to which the request will be
    sent to.
    """
    dev.set_interface_altsetting(bInterfaceNumber, bAlternateSetting)
