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