lib/rubyserial/osx_constants.rb in rubyserial-0.3.0 vs lib/rubyserial/osx_constants.rb in rubyserial-0.4.0
- old
+ new
@@ -9,10 +9,12 @@
O_NOCTTY = 0x20000
O_NONBLOCK = 0x0004
F_GETFL = 3
F_SETFL = 4
IGNPAR = 0x00000004
+ PARENB = 0x00001000
+ PARODD = 0x00002000
VMIN = 16
VTIME = 17
CLOCAL = 0x00008000
CREAD = 0x00000800
TCSANOW = 0
@@ -47,9 +49,15 @@
28800 => 28800,
57600 => 57600,
76800 => 76800,
115200 => 115200,
230400 => 230400
+ }
+
+ PARITY = {
+ :none => 0x00000000,
+ :even => PARENB,
+ :odd => PARENB | PARODD,
}
ERROR_CODES = {
1 => "EPERM",
2 => "ENOENT",