Article View: comp.sys.amiga.tech
Article #8999Re: serial.device
From: Bryce Nesbitt
Date: Tue, 31 May 1988 20:45
Date: Tue, 31 May 1988 20:45
34 lines
1128 bytes
1128 bytes
>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.
> So I started using:
>
> if( IOSTB_XOFFREAD==InSer->io_Status)
NO!!!!!!!!!!!!!!! NO!!!!!!!!!!!!!!!!
NO!!!!!!!!!!!!!!! NO!!!!!!!!!!!!!!!!
NO!!!!!!!!!!!!!!! NO!!!!!!!!!!!!!!!!
>If you reply my e-mail, Frank's address is ...uunet!mcvax!inria!geocub!anthes
>rouaix@inria.inria.fr
Technical Details
Message-ID:
<3898@cbmvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cbmvax!bryceShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cbmvax!bryce From: bryce@cbmvax.UUCP (Bryce Nesbitt) Newsgroups: comp.sys.amiga.tech,comp.sys.amiga Subject: Re: serial.device Message-ID: <3898@cbmvax.UUCP> Date: 31 May 88 20:45:38 GMT Reply-To: bryce@cbmvax.UUCP (Bryce Nesbitt) Organization: Commodore Technology, West Chester, PA Lines: 34