Class: LIBUSB::ControlTransfer

Inherits:
Transfer
  • Object
show all
Defined in:
lib/libusb/transfer.rb

Constant Summary

Constants inherited from Transfer

Transfer::TransferStatusToError

Instance Attribute Summary

Attributes inherited from Transfer

#allow_device_memory, #dev_handle

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Transfer

#actual_buffer, #actual_length, #alloc_buffer, #buffer, #buffer=, #callback=, #cancel!, #endpoint=, #free_buffer, #memory_type, #status, #submit!, #submit_and_wait, #submit_and_wait!, #timeout, #timeout=

Constructor Details

#initialize(args = {}) ⇒ ControlTransfer

Returns a new instance of ControlTransfer.



335
336
337
338
339
340
# File 'lib/libusb/transfer.rb', line 335

def initialize(args={})
  @transfer = Call::Transfer.new Call.libusb_alloc_transfer(0)
  @transfer[:type] = TRANSFER_TYPE_CONTROL
  @transfer[:timeout] = 1000
  super
end

Class Method Details

.newObject



331
332
333
# File 'lib/libusb/transfer.rb', line 331

def self.new(*)
  super
end