(self, request_type, request, value, index, data,
                     timeout=0)
return self._controlTransfer(request_type, request, value, index, data,
                                     sizeof(data), timeout)
Synchronous control write.
        request_type: request type bitmask (bmRequestType), see libusb1
          constants LIBUSB_TYPE_* and LIBUSB_RECIPIENT_*.
        request: request id (some values are standard).
        value, index, data: meaning is request-dependent.
        timeout: in milliseconds, how long to wait for device acknowledgement.
          Set to 0 to disable.

        Returns the number of bytes actually sent.
Synchronous control write.
        request_type: request type bitmask (bmRequestType), see libusb1
          constants LIBUSB_TYPE_* and LIBUSB_RECIPIENT_*.
        request: request id (some values are standard).
        value, index, data: meaning is request-dependent.
        timeout: in milliseconds, how long to wait for device acknowledgement.
          Set to 0 to disable.
Synchronous control write . request_type : request type bitmask ( bmRequestType ) see libusb1 constants LIBUSB_TYPE_ * and LIBUSB_RECIPIENT_ * . request : request id ( some values are standard ) . value index data : meaning is request - dependent . timeout : in milliseconds how long to wait for device acknowledgement . Set to 0 to disable .
def controlWrite(self, request_type, request, value, index, data,
                     timeout=0):
        """
        Synchronous control write.
        request_type: request type bitmask (bmRequestType), see libusb1
          constants LIBUSB_TYPE_* and LIBUSB_RECIPIENT_*.
        request: request id (some values are standard).
        value, index, data: meaning is request-dependent.
        timeout: in milliseconds, how long to wait for device acknowledgement.
          Set to 0 to disable.

        Returns the number of bytes actually sent.
        """
        request_type = (request_type & ~libusb1.USB_ENDPOINT_DIR_MASK) | \
                        libusb1.LIBUSB_ENDPOINT_OUT
        data = create_binary_buffer(data)
        return self._controlTransfer(request_type, request, value, index, data,
                                     sizeof(data), timeout)
def controlWrite ( self , request_type , request , value , index , data , timeout = 0 ) : request_type = ( request_type & ~ libusb1 . USB_ENDPOINT_DIR_MASK ) | libusb1 . LIBUSB_ENDPOINT_OUT data = create_binary_buffer ( data ) return self . _controlTransfer ( request_type , request , value , index , data , sizeof ( data ) , timeout )