Xref: utzoo comp.sys.amiga.tech:875 comp.sys.amiga:19557 Path: 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 >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