home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!usc!sdd.hp.com!elroy.jpl.nasa.gov!jato!jdickson
- From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
- Subject: Re: SERIAL.DEVICE HEEEEELLLLLPPPPPPP
- Message-ID: <1992Sep1.170651.19933@jato.jpl.nasa.gov>
- Organization: Jet Propulsion Laboratory
- References: <u895762.715081138@bruny> <bJ9Br*eV1@swinjm.UUCP>
- Date: Tue, 1 Sep 1992 17:06:51 GMT
- Lines: 34
-
- In article <bJ9Br*eV1@swinjm.UUCP> cbmvax!cbmehq!cbmfra!swinjm!forgeas (Jean-Michel Forgeas) writes:
- >In article <u895762.715081138@bruny>, Paul S.E. writes:
- >
- >> So, I am wondering if there is a way to stop the serial.device from waiting
- >> until the buffer is full, and hand over the characters as they come instead.
- >
- >1st solution:
- >Do a CMD_QUERY, and if there is no character in the buffer, do not send read
- >command.
- >
- >2nd solution:
- >Use SendIO() instead of DoIO().
- >
- > Jean-Michel
- >--
- >Jean-Michel Forgeas uunet!cbmvax!cbmehq!cbmfra!swinjm!forgeas
- >4 rue du General Leclerc __
- >95210 Saint Gratien, France \/
-
- 3rd solution:
- Post a read for 1 character using SendIO. Go on about your business...When the
- signal bit of the reply port is set - meaning that the read request was satis-
- fied, turn around and perform a SCMD_QUERY to determine the actual number of
- characters received. If and when your code has nothing to do in the course of
- waiting for data, simply wait for the signal to be set.
-
- jeff
-
- P.S. My .sig was looted in the L.A. Riots
-
-
-
-
-
-