[PD-dev] comport for OSX

Brian Sheehan rbsheehan at yahoo.com
Tue Aug 12 17:52:24 CEST 2003

Hi ben,
I ported some serial port code that was written for
windows to Mac OS X recently. You will pretty much
have too rewrite the windows code, as the API is
completely different on both platforms. That said,
it's not that hard a job. I'm attaching two files, one
with windows serial code, and another with the ported
code. Note: the function SetLastError() is a windows
api function. For the Mac OS X version of the code, I
provided a function of this name which threw an
appropriate exception. You could use this function to
set errno or whatever suits your purposes. 

By the way, I'm using a keyspan serial port adapter
(USA19QW), it works great.


ben said:
Hello all,

I have a project coming up in two months and I would
be very happy to 
able to interface pd on OSX with a serial device.
(using keyspand 

How possible would a OSX port of comport object be?


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
-------------- next part --------------
A non-text attachment was scrubbed...
Name: serial orig.cpp
Type: application/x-unknown
Size: 4827 bytes
Desc: serial orig.cpp
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20030812/1e1ec216/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: serial.cpp
Type: application/x-unknown
Size: 6894 bytes
Desc: serial.cpp
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20030812/1e1ec216/attachment-0001.bin>

More information about the Pd-dev mailing list