Class: LIBUSB::InterruptTransfer

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 = {}) ⇒ InterruptTransfer

Returns a new instance of InterruptTransfer.



348
349
350
351
352
353
# File 'lib/libusb/transfer.rb', line 348

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

Class Method Details

.newObject



344
345
346
# File 'lib/libusb/transfer.rb', line 344

def self.new(*)
  super
end