Article View: comp.sys.amiga.tech
Article #9000Re: serial.device
From: Marco Papa
Date: Wed, 01 Jun 1988 01:56
Date: Wed, 01 Jun 1988 01:56
29 lines
1597 bytes
1597 bytes
In article <3898@cbmvax.UUCP> bryce@cbmvax.UUCP (Bryce Nesbitt) writes:
||I'm using the serial.device, and I need to know if transmission is stopped
||due to having received XOFF.
|| So I did the obvious: if( IOSTF_XOFFREAD & InSer-|io_Status) {
|
|The problem is that those bit definitions refer to the HIGH ORDER BYTE
|of the io_Status WORD. This is a bug, and will be fixed.
^^^^^^^^
||#define IOSTB_XOFFREAD 4L
||#define IOSTF_XOFFREAD (1L<<4)
|
|/* change to */
|#define IOSTB_XOFFREAD (4+8)L
|#define IOSTF_XOFFREAD (1L << IOSTB_XOFFREAD)
|
|That will work.
^^^^^^^^^
Bryce,
What do you mean? Can we assume that the above fix will always work, even
in 1.4 and above? That is, is the fix just properly documenting the
current situation?
-- Marco Papa 'Doc'
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
uucp:...!pollux!papa BIX:papa ARPAnet:pollux!papa@oberon.usc.edu
"There's Alpha, Beta, Gamma and Diga!" -- Leo Schwab [quoting Rick Unland]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<9487@oberon.USC.EDU>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!elroy!cit-vax!oberon!pollux.usc.edu!papaReferences:
<3898@cbmvax.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!elroy!cit-vax!oberon!pollux.usc.edu!papa From: papa@pollux.usc.edu (Marco Papa) Newsgroups: comp.sys.amiga.tech,comp.sys.amiga Subject: Re: serial.device Message-ID: <9487@oberon.USC.EDU> Date: 1 Jun 88 01:56:30 GMT References: <3898@cbmvax.UUCP> Sender: news@oberon.USC.EDU Reply-To: papa@pollux.usc.edu (Marco Papa) Organization: Felsina Software, Los Angeles, CA Lines: 28