home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 12955 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.5 KB  |  45 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!usc!sdd.hp.com!elroy.jpl.nasa.gov!jato!jdickson
  3. From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
  4. Subject: Re: SERIAL.DEVICE HEEEEELLLLLPPPPPPP
  5. Message-ID: <1992Sep1.170651.19933@jato.jpl.nasa.gov>
  6. Organization: Jet Propulsion Laboratory
  7. References: <u895762.715081138@bruny> <bJ9Br*eV1@swinjm.UUCP>
  8. Date: Tue, 1 Sep 1992 17:06:51 GMT
  9. Lines: 34
  10.  
  11. In article <bJ9Br*eV1@swinjm.UUCP> cbmvax!cbmehq!cbmfra!swinjm!forgeas (Jean-Michel Forgeas) writes:
  12. >In article <u895762.715081138@bruny>, Paul S.E. writes:
  13. >
  14. >>  So, I am wondering if there is a way to stop the serial.device from waiting
  15. >> until the buffer is full, and hand over the characters as they come instead.
  16. >
  17. >1st solution:
  18. >Do a CMD_QUERY, and if there is no character in the buffer, do not send read
  19. >command.
  20. >
  21. >2nd solution:
  22. >Use SendIO() instead of DoIO().
  23. >
  24. >    Jean-Michel
  25. >--
  26. >Jean-Michel Forgeas         uunet!cbmvax!cbmehq!cbmfra!swinjm!forgeas
  27. >4 rue du General Leclerc                       __
  28. >95210 Saint Gratien, France                    \/
  29.  
  30. 3rd solution:
  31. Post a read for 1 character using SendIO. Go on about your business...When the
  32. signal bit of the reply port is set - meaning that the read request was satis-
  33. fied, turn around and perform a SCMD_QUERY to determine the actual number of
  34. characters received. If and when your code has nothing to do in the course of
  35. waiting for data, simply wait for the signal to be set. 
  36.  
  37. jeff
  38.  
  39. P.S. My .sig was looted in the L.A. Riots
  40.  
  41.  
  42.  
  43.  
  44.  
  45.