Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Serial port programming in OCaml?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <xleroy@p...>
Subject: Re: [Caml-list] Serial port programming in OCaml?
> 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 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:  FAQ:
To unsubscribe, mail  Archives: