Module: LibSerial::Drivers
- Defined in:
- lib/lib_serial/driver.rb,
lib/lib_serial/drivers/linux.rb,
lib/lib_serial/drivers/mac_os.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.baud_rates ⇒ Object
6 7 8 |
# File 'lib/lib_serial/driver.rb', line 6 def self.baud_rates [110,150,300,600,1200,2400,4800,9600,19200,38400,57600,115200] end |
.flow_control ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/lib_serial/driver.rb', line 18 def self.flow_control { none: 'clocal -crtscts -ixon -ixoff', rts_cts: '-clocal crtscts -ixon -ixoff', xon_xoff: '-clocal -crtscts ixon ixoff' } end |
.parity ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/lib_serial/driver.rb', line 10 def self.parity { none: '-parenb', odd: 'parenb parodd', even: 'parenb -parodd' } end |