|
|
1.1 root 1: .TH SCC 3
2: .SH NAME
3: scc, duart, uart \- serial communication control
4: .SH SYNOPSIS
5: .nf
6: .B bind -a #t /dev
7:
8: .B /dev/eia0
9: .B /dev/eia0ctl
10: .B /dev/eia1
11: .B /dev/eia1ctl
12: .fi
13: .SH DESCRIPTION
14: .PP
15: The serial line devices serve a one-level directory,
16: giving access to the serial ports.
17: There are several devices serving the same files;
18: the particular one used depends on the machine involved.
19: .B Eia0
20: is a stream data file.
21: It can be read and written to use that port.
22: Reads will block until at least one character is available.
23: .B Eia0ctl
24: is a stream control file associated with the port.
25: .B Eia1
26: and
27: .B eia1ctl
28: are similar, but for a second serial line.
29: .PP
30: The
31: .B ctl
32: file can be used to push stream modules onto the port.
33: One can also write one of the following textual commands to a
34: .B ctl
35: file:
36: .TP
37: .BI b n
38: Set the baud rate to
39: .IR n .
40: .TP
41: .BI d n
42: Set DTR if
43: .I n
44: is non-zero;
45: else clear it.
46: .TP
47: .BI k n
48: Send a break lasting
49: .I n
50: milliseconds.
51: .TP
52: .BI r n
53: Set RTS if
54: .I n
55: is non-zero;
56: else clear it.
57: .TP
58: .BI m n
59: Obey modem CTS signal if
60: .I n
61: is non-zero;
62: else clear it.
63: .TP
64: .BI p c
65: Set parity to odd if
66: .I c
67: is
68: .BR o ,
69: to even if
70: .I c
71: is
72: .BR e ;
73: else set no parity.
74: .TP
75: .BI s n
76: Set number of stop bits to
77: .IR n .
78: Legal values are 1 or 2.
79: .TP
80: .BI l n
81: Set number of bits per byte to
82: .IR n .
83: Legal values are 5, 6, 7, or 8.
84: .SH SOURCE
85: .B /sys/src/9/port/devscc.c
86: .br
87: .B /sys/src/9/*/devduart.c
88: .br
89: .B /sys/src/9/*/devuart.c
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.