

def controlMsg(self, requestType, request, buffer, value=0, index=0, timeout=100):
    'Perform a control request to the default control pipe on a device.\n\n        Arguments:\n            requestType: specifies the direction of data flow, the type\n                         of request, and the recipient.\n            request: specifies the request.\n            buffer: if the transfer is a write transfer, buffer is a sequence\n                    with the transfer data, otherwise, buffer is the number of\n                    bytes to read.\n            value: specific information to pass to the device. (default: 0)\n                   index: specific information to pass to the device. (default: 0)\n            timeout: operation timeout in miliseconds. (default: 100)\n        Return the number of bytes written.\n        '
    return self.dev.ctrl_transfer(requestType, requestType, wValue=value, wIndex=index, data_or_wLength=buffer, timeout=timeout)

dataset/ETHPy150Open walac/pyusb/usb/legacy.py DeviceHandle.controlMsg/VarMisuse@39/276 `request`->`requestType`