henesyinit from p9fd787fda5 years agoHistory
97 lines · 1.4 KB · Text
RawDownload
.TH UART 3 .SH NAMEuart, eia \- serial communication control.SH SYNOPSIS.nf.B bind -a #t /dev .B /dev/eia0.B /dev/eia0ctl.B /dev/eia0status.B /dev/eia1.B /dev/eia1ctl.B /dev/eia1status\&....fi.SH DESCRIPTION.PPThe serial line devices serve a one-level directory,giving access to the serial ports.Device.I nis accessed through.BI eia n(the data file),.BI eia n ctl(the control file), and.BI eia n status(the read-only status file).Reads of the data file will block until at least one byte is available.Thecontrol fileconfigures the port.It accepts the following commands:.TP.BI b nSet the baud rate to.IR n ..TP.BI d nSet DTR if.I nis non-zero;else clear it..TP.BI k nSend a break lasting.I nmilliseconds..TP.BI r nSet RTS if.I nis non-zero;else clear it..TP.BI m nObey modem CTS signal if.I nis non-zero;else clear it..TP.BI i nEnable input FIFO if.I nis non-zero;else disable..TP.BI p cSet parity to odd if.I cis.BR o ,to even if.I cis.BR e ;else set no parity..TP.BI s nSet number of stop bits to.IR n .Legal values are 1 or 2..TP.BI l nSet number of bits per byte to.IR n .Legal values are 5, 6, 7, or 8..PPThe statusfiles contain a textual representation of the status of the line, in the format of thecommands used on thecontrolfile..SH SOURCE.B /sys/src/9/port/devuart.c.br.B /sys/src/9/*/uart*.c

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t