https://github.com/shamazmazum/cl-serial
Simple library for work with serial ports
https://github.com/shamazmazum/cl-serial
serial-ports
Last synced: 25 days ago
JSON representation
Simple library for work with serial ports
- Host: GitHub
- URL: https://github.com/shamazmazum/cl-serial
- Owner: shamazmazum
- License: bsd-2-clause
- Created: 2014-04-28T04:18:27.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-17T14:06:59.000Z (almost 11 years ago)
- Last Synced: 2025-02-09T10:11:19.072Z (3 months ago)
- Topics: serial-ports
- Language: Common Lisp
- Size: 198 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
cl-serial
=========Simple library for work with serial ports as binary streams. It works currently on SBCL. CLISP support is planned.
Example of use with flexi-streams
---------------------------------```
(with-serial-device
(device serial-device-input
:name "/dev/cuaa0"
:baudrate 9600
:stopbits 2
:parity #\E)
(let ((stream (make-flexi-stream device)))
(read-line stream)))
```Also you can configure the device later using accessors:
```
(with-serial-device
(device serial-device-input
:name "/dev/cuaa0")
(setf (serial-device-framesize device) 7)
.....)
```