Class: GPhoto2::Port

Inherits:
Object
  • Object
show all
Includes:
FFI::GPhoto2Port, Struct
Defined in:
lib/gphoto2/port.rb

Constant Summary

Constants included from FFI::GPhoto2Port

FFI::GPhoto2Port::GPPortSerialParity, FFI::GPhoto2Port::GPPortType, FFI::GPhoto2Port::GP_ERROR, FFI::GPhoto2Port::GP_ERROR_BAD_PARAMETERS, FFI::GPhoto2Port::GP_ERROR_FIXED_LIMIT_EXCEEDED, FFI::GPhoto2Port::GP_ERROR_HAL, FFI::GPhoto2Port::GP_ERROR_IO, FFI::GPhoto2Port::GP_ERROR_IO_INIT, FFI::GPhoto2Port::GP_ERROR_IO_LOCK, FFI::GPhoto2Port::GP_ERROR_IO_READ, FFI::GPhoto2Port::GP_ERROR_IO_SERIAL_SPEED, FFI::GPhoto2Port::GP_ERROR_IO_SUPPORTED_SERIAL, FFI::GPhoto2Port::GP_ERROR_IO_SUPPORTED_USB, FFI::GPhoto2Port::GP_ERROR_IO_UPDATE, FFI::GPhoto2Port::GP_ERROR_IO_USB_CLAIM, FFI::GPhoto2Port::GP_ERROR_IO_USB_CLEAR_HALT, FFI::GPhoto2Port::GP_ERROR_IO_USB_FIND, FFI::GPhoto2Port::GP_ERROR_IO_WRITE, FFI::GPhoto2Port::GP_ERROR_LIBRARY, FFI::GPhoto2Port::GP_ERROR_NOT_SUPPORTED, FFI::GPhoto2Port::GP_ERROR_NO_MEMORY, FFI::GPhoto2Port::GP_ERROR_TIMEOUT, FFI::GPhoto2Port::GP_ERROR_UNKNOWN_PORT, FFI::GPhoto2Port::GP_OK

Instance Attribute Summary

Attributes included from Struct

#ptr

Instance Method Summary collapse

Methods included from Struct

#to_ptr

Constructor Details

#initializePort

Returns a new instance of Port.



6
7
8
# File 'lib/gphoto2/port.rb', line 6

def initialize
  @ptr = new
end

Instance Method Details

#closevoid

This method returns an undefined value.



23
24
25
# File 'lib/gphoto2/port.rb', line 23

def close
  _close
end

#info=(info) ⇒ PortInfo

Parameters:

Returns:



12
13
14
15
# File 'lib/gphoto2/port.rb', line 12

def info=(info)
  set_info(info)
  info
end

#openvoid

This method returns an undefined value.



18
19
20
# File 'lib/gphoto2/port.rb', line 18

def open
  _open
end

#resetvoid

This method returns an undefined value.



28
29
30
# File 'lib/gphoto2/port.rb', line 28

def reset
  _reset
end