module

RNS::SerialConstants

Serial port termios constants. Grouped here to avoid polluting LibC with platform-specific ifdefs.

Constants

B115200 = 4098_u64
B19200 = 14_u64
B230400 = 4099_u64
B38400 = 15_u64
B57600 = 4097_u64
B9600 = 13_u64
CLOCAL = 32768_u64
CREAD = 2048_u64
CRTSCTS = {% if flag?(:darwin) %}0x00030000_u64{% else %}0x80000000_u64{% end %}
CS5 = 0_u64
CS6 = 256_u64
CS7 = 512_u64
CS8 = 768_u64
CSIZE = 768_u64

Control flag bits

CSTOPB = 1024_u64
IXANY = 2048_u64
IXOFF = {% if flag?(:darwin) %}0x00000400_u64{% else %}0x00001000_u64{% end %}
IXON = 512_u64

Input flag bits

PARENB = 4096_u64
PARODD = 8192_u64
TCIOFLUSH = 3

tcflush queue selectors

VMIN = {% if flag?(:darwin) %}16{% else %}6{% end %}

c_cc indices

VTIME = {% if flag?(:darwin) %}17{% else %}5{% end %}