Path: utzoo!attcan!uunet!mcvax!inria!rouaix From: rouaix@inria.UUCP (Francois Rouaix) Newsgroups: comp.sys.amiga Subject: serial.device Keywords: XOFF help needed Message-ID: <695@inria.UUCP> Date: 30 May 88 07:59:43 GMT Organization: Co. Lines: 59 I'm posting this for a friend. I realize that this should belong to comp.sys.amiga.tech, but since my friend does not receive this group at his site, here it is: --------------------------------------------------------------------------- Titre: Testing for XOFF condition when using serial.device I Wanted to post, this to .tech, but since we haven't gotten that group for the last month or so, and it looks like things won't change any time soon now... 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) { /* we're XOFF'ed */ } else { /* No XOFF */ } Now this didn't work, but I noticed that the value of io_Status seemed to be 4 when an XOFF had been received. So I looked into devices/serial.h, and found #define IOSTB_XOFFREAD 4L #define IOSTF_XOFFREAD (1L<<4) So I started using: if( IOSTB_XOFFREAD==InSer->io_Status) and sure enough everything worked just fine. Now this is in complete contradiction with the documentation I have (Mortimore's "Amiga Programmer's Handbook" vol. II p.144). So what I'd like to know, is: is io_Status used as a mask, or is it just an error number, as my experience seems to indicate? If I get the answer on this one, I'll post a couple of diffs to the moderators for my zmodem port which is still waiting at the moderators of the binaries/sources groups. Merci beaucoup Frank ---------------------------------------------------------------------------- If you reply my e-mail, Frank's address is ...uunet!mcvax!inria!geocub!anthes -- *- Francois Rouaix // When the going gets tough, * *- rouaix@inria.inria.fr \X/ the guru goes meditating... * *- SYSOP of Sgt. Flam's Lonely Amigas Club. (33) (1) 39-55-84-59 (Videotext) *