serial communications

Enoch Wu enochw@scn.org
Fri Apr 6 14:25:00 GMT 2001


Hi,,

On Fri, Apr 06, 2001 at 12:22:36PM -0600, James Bergstrom wrote:
> I am very new at using cygwin.  I just need to know how to do IO through a
> serial port.  I have a driver written in C for Unix to control a device
> through the serial port, and now we are going to use it on a win98 machine
> using cygwin.  Perhaps there is an example somewhere of writing bits to a
> serial port?

Perhaps there is. Can you really send bits at a time? I don't think so. The PC serial port is byte oriented. You can send a byte with some bits masked off. The serial port uses start and stop bits to synchronize. 

I'd be curious to know what devices can receive bits less than an 8 bit byte.

EW
> 
> Thank you very much,
> I have been struggling with this for hours now.
> 
> James Bergstrom
> University of Utah
> El En / Cp Sc / Cp En 
> 
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple
> 
> 

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list