(self, request_type, request, value, index, length,
                    timeout=0)
return data.raw[:transferred]
Synchronous control read.
        timeout: in milliseconds, how long to wait for data. Set to 0 to
          disable.
        See controlWrite for other parameters description.

        Returns received data.
Synchronous control read.
        timeout: in milliseconds, how long to wait for data. Set to 0 to
          disable.
        See controlWrite for other parameters description.
Synchronous control read . timeout : in milliseconds how long to wait for data . Set to 0 to disable . See controlWrite for other parameters description .
def controlRead(self, request_type, request, value, index, length,
                    timeout=0):
        """
        Synchronous control read.
        timeout: in milliseconds, how long to wait for data. Set to 0 to
          disable.
        See controlWrite for other parameters description.

        Returns received data.
        """
        request_type = (request_type & ~libusb1.USB_ENDPOINT_DIR_MASK) | \
                        libusb1.LIBUSB_ENDPOINT_IN
        data = create_binary_buffer(length)
        transferred = self._controlTransfer(request_type, request, value,
                                            index, data, length, timeout)
        return data.raw[:transferred]
def controlRead ( self , request_type , request , value , index , length , timeout = 0 ) : request_type = ( request_type & ~ libusb1 . USB_ENDPOINT_DIR_MASK ) | libusb1 . LIBUSB_ENDPOINT_IN data = create_binary_buffer ( length ) transferred = self . _controlTransfer ( request_type , request , value , index , data , length , timeout ) return data . raw [ : transferred ]