Module driver:umserial - Usermode serial port driver
Usermode serial port driver. This provides access to the host's serial ports, named in a similar fashion, e.g. "serial.ttyS0". Options given to the driver specify the serial devices to use.
Requires: interface:serport
Provides: interface:input interface:output
Used:
Index
-
Process
umserial.driver- Main serial-port driver process-
Channel type
CT.SER.LL- Channel-type for the low-level serial driver-
Variable
in?- Requests -
Variable
out!- Responses
-
Variable
-
Protocol
P.SER.LL.IN- Input protocol to the low-level serial driver-
Tag
get.baud- Get baud rate (-> result) -
Tag
set.baud- Set baud rate
-
Tag
-
Protocol
P.SER.LL.OUT- Output protocol from the low-level serial driver-
Tag
result- Generic result
-
Tag
-
Record
UM.SERPORT- Serial port structure
-
Channel type
Declarations
umserial.occ:79Process umserial.driver
PROC umserial.driver (CT.DRIVER? link, SHARED LOG! log, VAL []BYTE options)
Main serial-port driver process. This implements the user-mode serial-port driver. The host ports to use must be specified as options to the driver.
Parameters:
CT.DRIVER? |
link |
Link to parent driver. |
SHARED LOG! |
log |
System log channels. |
VAL []BYTE |
options |
Driver options. |
umserial.occ:82Record UM.SERPORT
DATA TYPE UM.SERPORT
Serial port structure.
umserial.occ:93Protocol P.SER.LL.IN
PROTOCOL P.SER.LL.IN
Input protocol to the low-level serial driver.
umserial.occ:95Tag set.baud
set.baud; INT
Set baud rate.
umserial.occ:96Tag get.baud
get.baud
Get baud rate (-> result).
umserial.occ:100Protocol P.SER.LL.OUT
PROTOCOL P.SER.LL.OUT
Output protocol from the low-level serial driver.
umserial.occ:102Tag result
result; INT
Generic result.
umserial.occ:106Channel type CT.SER.LL
CHAN TYPE CT.SER.LL
Channel-type for the low-level serial driver.
umserial.occ:108Variable in?
CHAN P.SER.LL.IN
Requests.
umserial.occ:109Variable out!
CHAN P.SER.LL.OUT
Responses.