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

- old
+ new

@@ -250,10 +250,24 @@ # uint32 fRtsControl :2; # uint32 fAbortOnError :1; # uint32 fDummy2 :17; Sizeof = 28 ONESTOPBIT = 0 + TWOSTOPBITS = 2 + + STOPBITS = { + 1 => ONESTOPBIT, + 2 => TWOSTOPBITS + } + NOPARITY = 0 + ODDPARITY = 1 + EVENPARITY = 2 + PARITY = { + :none => NOPARITY, + :odd => ODDPARITY, + :even => EVENPARITY + } end class CommTimeouts < FFI::Struct layout :read_interval_timeout, :uint32, :read_total_timeout_multiplier, :uint32,