All Manuals > LispWorks® User Guide and Reference Manual > 44 The SERIAL-PORT Package

write-serial-port-char Function

Summary

Writes a character to a serial port.

Package

serial-port

Signature

write-serial-port-char char serial-port &optional timeout-error-p => char

Arguments
char
A character.
serial-port
A serial-port object.
timeout-error-p
A boolean.
Values
char
The character char or nil.
Description

The function write-serial-port-char writes the character char to the serial port associated with serial-port, and returns char.

A timeout will occur if the character cannot be written before the write timeout (as specified by values given when the serial port was opened by open-serial-port).

When a timeout occurs, if timeout-error-p is non-nil, then an error of type serial-port-timeout is signaled, otherwise nil is returned. The default value of timeout-error-p is t.

See also

write-serial-port-string


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:55