(dev, bInterfaceNumber)
return dev.ctrl_transfer(
                bmRequestType = bmRequestType,
                bRequest = 0x0a,
                wIndex = bInterfaceNumber,
                data_or_wLength = 1)[0]
r"""Get the current alternate setting of the interface.

    dev is the Device object to which the request will be
    sent to.
r"""Get the current alternate setting of the interface.
r Get the current alternate setting of the interface .
def get_interface(dev, bInterfaceNumber):
    r"""Get the current alternate setting of the interface.

    dev is the Device object to which the request will be
    sent to.
    """
    bmRequestType = util.build_request_type(
                            util.CTRL_IN,
                            util.CTRL_TYPE_STANDARD,
                            util.CTRL_RECIPIENT_INTERFACE)

    return dev.ctrl_transfer(
                bmRequestType = bmRequestType,
                bRequest = 0x0a,
                wIndex = bInterfaceNumber,
                data_or_wLength = 1)[0]
def get_interface ( dev , bInterfaceNumber ) : bmRequestType = util . build_request_type ( util . CTRL_IN , util . CTRL_TYPE_STANDARD , util . CTRL_RECIPIENT_INTERFACE ) return dev . ctrl_transfer ( bmRequestType = bmRequestType , bRequest = 0x0a , wIndex = bInterfaceNumber , data_or_wLength = 1 ) [ 0 ]