Waits for some aspect of the state of a serial port to change.
serial-port
wait-serial-port-state serial-port keys &key timeout => result
| serial-port⇩ | 
A serial-port object. | 
| keys⇩ | 
A list of keywords. | 
| timeout⇩ | 
A number. | 
| result⇩ | 
A list. | 
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 - 01 Dec 2021 19:30:55