Module: Ftdi

Extended by:
FFI::Library
Defined in:
lib/ftdi.rb,
lib/ftdi/version.rb

Overview

Represents libftdi ruby bindings. End-user API represented by Context class.

Defined Under Namespace

Classes: CannotInitializeContextError, Context, Error, StatusCodeError

Constant Summary

ChipType =

FTDI chip type.

enum(:type_am, :type_bm, :type_2232c, :type_r, :type_2232h, :type_4232h, :type_232h)
ModuleDetachMode =

Automatic loading / unloading of kernel modules.

enum(:auto_detach_sio_module, :dont_detach_sio_module)
BitsType =

Number of bits for Context#set_line_property.

enum(
  :bits_7, 7,
  :bits_8, 8
)
StopbitsType =

Number of stop bits for Context#set_line_property.

enum(
  :stop_bit_1, 0,
  :stop_bit_15, 1,
  :stop_bit_2, 2
)
ParityType =

Parity mode for Context#set_line_property.

enum(:none, :odd, :even, :mark, :space)
BreakType =

Break type for Context#set_line_property2.

enum(:break_off, :break_on)
Interface =

Port interface for chips with multiple interfaces.

See Also:

enum(:interface_any, :interface_a, :interface_b, :interface_c, :interface_d)
BitbangMode =

Bitbang mode for Context#set_bitmode.

enum(:reset, :bitbang, :mpsse, :syncbb, :mcu, :opto, :cbus, :syncff)
SIO_DISABLE_FLOW_CTRL =

Flow control: disable

See Also:

0x0
SIO_RTS_CTS_HS =

See Also:

(0x1 << 8)
SIO_DTR_DSR_HS =

See Also:

(0x2 << 8)
SIO_XON_XOFF_HS =

See Also:

(0x4 << 8)
VERSION =

Gem version.

"0.0.20".freeze