#NEWLINE# @ methodtrace ( _logger ) #NEWLINE# def ctrl_transfer( self , dev_handle , bmRequestType , bRequest , wValue , wIndex , data , timeout ) : #NEWLINE# #INDENT# ( addr , length ) = data . buffer_info ( ) #NEWLINE# length *= data . itemsize #NEWLINE# ret = _check ( self . lib . libusb_control_transfer ( dev_handle . handle , bmRequestType , bRequest , wValue , wIndex , cast ( addr , POINTER ( c_ubyte ) ) , length , timeout ) ) #NEWLINE# return ret