Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Mmmmhh...Crunchy!
tree: 0df60b88f3

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
LICENSE
README.md
cerial.asd
package.lisp
serial-base.lisp
serial-posix.lisp
serial-win32.lisp
unistd-sbcl.lisp
unistd.lisp
win32.lisp

README.md

CeriaL

Mmmmh...Crunchy!

Usage

WARNING! I'm still experimenting...Don't get used to the flavour just yet.

;; serial port to write to
(setq *sout* (make-serial "pseudo0"))

;; the other end
(setq *sin* (make-serial "pseudo1"))

;; write some 
(write-byte-seq *sout* (flexi-streams:string-to-octets "Hello World!"))

;; read some
(flexi-streams:octets-to-string (cerial:read-byte-seq *sin* 12))

"Hello World!"

Or more 'idiomatically':

(with-serial (sout "pseudo1"
            :baudrate 115200
            :parity :PARITY-ODD)
  (write-serial-byte sout 42))

For a full description of the API see the wiki pages of the future!

Something went wrong with that request. Please try again.