Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Fri, 6 Apr 2001 14:38:31 -0700
From: Enoch Wu <enochw@scn.org>
To: cygwin@sources.redhat.com
Subject: Re: serial communications
Message-ID: <20010406143831.A3993313@MELON>
Reply-To: Enoch Wu <enochw@scn.org>
Mail-Followup-To: Enoch Wu <enochw@scn.org>, cygwin@sources.redhat.com
References: <Pine.4.10.10104061219090.859-100000@lab3-7.eng.utah.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <Pine.4.10.10104061219090.859-100000@lab3-7.eng.utah.edu>; from bergstro@eng.utah.edu on Fri, Apr 06, 2001 at 12:22:36PM -0600
X-Mailer: Mutt 1.2.5i <http://www.mutt.org>
X-Operating-System: CYGWIN_98-4.10 1.1.8(0.34/3/2) i586<http://www.cygwin.com>
X-Sender: ewu@eskimo.com

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

