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.


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

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


327
328
329
# File 'lib/libusb/transfer.rb', line 327

def self.new(*)
  super
end