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

NextPrevUpTopContentsIndex

wait-serial-port-state

Function
Summary

Waits for some aspect of the state of a serial port to change.

Package

serial-port

Signature

wait-serial-port-state serial-port keys &key timeout => result

Arguments

serial-port

A serial-port object.

keys

A list of keywords.

timeout

A number.

Values

result

A list.

Description

The function wait-serial-port-state waits for some state in the serial port associated with serial-port to change.

The argument keys should be a list of one or more of the keywords :cts, :dsr, :err, :ring, :rlsd and :break.

result is a list giving the keys for which the state has changed.

If timeout is non-nil then the function will return nil after that many seconds even if the state has not changed.


LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex