code: def get_interface(dev, bInterfaceNumber):
      r
      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]
docs: r"""Get the current alternate setting of the interface.
  
      dev is the Device object to which the request will be
      sent to.