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.


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

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


340
341
342
# File 'lib/libusb/transfer.rb', line 340

def self.new(*)
  super
end