caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Serial port programming in OCaml?
@ 2001-10-19  9:20 Rafael 'Dido' Sevilla
  2001-10-19 11:52 ` Xavier Leroy
  0 siblings, 1 reply; 2+ messages in thread
From: Rafael 'Dido' Sevilla @ 2001-10-19  9:20 UTC (permalink / raw)
  To: Caml List

Just wondering, does a library of functions for doing serial port I/O in
Objective Caml already exist?

-- 
Rafael R. Sevilla <sevillar@team.ph.inter.net>   +63(2)   8177746 ext. 8311
Programmer, Inter.Net Philippines                +63(917) 4458925
http://dido.engr.internet.org.ph/                OpenPGP Key ID: 0x5CDA17D8
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] Serial port programming in OCaml?
  2001-10-19  9:20 [Caml-list] Serial port programming in OCaml? Rafael 'Dido' Sevilla
@ 2001-10-19 11:52 ` Xavier Leroy
  0 siblings, 0 replies; 2+ messages in thread
From: Xavier Leroy @ 2001-10-19 11:52 UTC (permalink / raw)
  To: Rafael 'Dido' Sevilla; +Cc: Caml List

> Just wondering, does a library of functions for doing serial port I/O in
> Objective Caml already exist?

Under Unix, the Unix.tcsetattr / Unix.tcgetattr functions let you
control most parameters of the serial port; you then use Unix.read and
Unix.write as usual to do the actual I/O.

Under other OSes, you'll need a bit of C code to set the parameters of
the serial port.

- Xavier Leroy
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-10-19 12:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-19  9:20 [Caml-list] Serial port programming in OCaml? Rafael 'Dido' Sevilla
2001-10-19 11:52 ` Xavier Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).