lib/rubyserial/linux_constants.rb in rubyserial-0.5.0 vs lib/rubyserial/linux_constants.rb in rubyserial-0.6.0

- old
+ new

@@ -14,14 +14,15 @@ TCSANOW = 0 TCSETS = 0x5402 IGNPAR = 0000004 PARENB = 0000400 PARODD = 0001000 - CREAD = 0000200 + CSTOPB = 0000100 + CREAD = 0000200 CLOCAL = 0004000 VMIN = 6 - NCCS = 19 + NCCS = 32 DATA_BITS = { 5 => 0000000, 6 => 0000020, 7 => 0000040, @@ -64,9 +65,14 @@ PARITY = { :none => 0000000, :even => PARENB, :odd => PARENB | PARODD, + } + + STOPBITS = { + 1 => 0x00000000, + 2 => CSTOPB } ERROR_CODES = { 1 => "EPERM", 2 => "ENOENT",