Class: LIBUSB::BulkTransfer

Inherits:
Transfer 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 = {}) ⇒ BulkTransfer

Returns a new instance of BulkTransfer.


280
281
282
283
284
285
# File 'lib/libusb/transfer.rb', line 280

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

Class Method Details

.newObject


276
277
278
# File 'lib/libusb/transfer.rb', line 276

def self.new(*)
  super
end