LispWorks User Guide and Reference Manual > 37 The SERIAL-PORT Package

NextPrevUpTopContentsIndex

read-serial-port-char

Function
Summary

Reads a character from a serial port.

Package

serial-port

Signature

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

Arguments

serial-port

A serial-port object.

timeout-error-p

A boolean.

timeout-char

A character.

Values

char

A character.

Description

The function read-serial-port-char reads and returns a character from the serial port associated with serial-port .

A timeout will occur if the character is not available before the read 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 signalled, otherwise timeout-char is returned. The default value of timeout-error-p is t .

See also

read-serial-port-string


LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex