Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!columbia!rutgers!ames!ucbcad!ucbvax!decvax!minow From: minow@decvax.UUCP (Martin Minow) Newsgroups: comp.sys.atari.st Subject: Reading the RS232 parameters Message-ID: <123@decvax.UUCP> Date: Wed, 29-Jul-87 20:02:30 EDT Article-I.D.: decvax.123 Posted: Wed Jul 29 20:02:30 1987 Date-Received: Sat, 1-Aug-87 00:57:45 EDT References: <8707272346.AA14688@orville.arpa> Reply-To: minow@decvax.UUCP (Martin Minow) Distribution: world Organization: Digital Eq. Corp. - Merrimack NH. Lines: 23 In article <8707272346.AA14688@orville.arpa> rowley@ORVILLE.ARPA (Karl Rowley) writes: > >Does anyone know how to determine what the rs-232 parameters are at any >point in time? They are simple enough to set with Rsconf(), but I do >not know of a way to just read the current settings. It's not documented (so it might change), but Rsconf returns the current values encoded in a long integer. If you use MWC, you have to work around the (void) cast in . The result is setup as follows: Bits 31..24 ucr 23..16 rsr 15.. 8 tsr 7.. 0 scr I'm not sure how to read the current Baud rate from the operating system. The Rsconf parameter seems to be converted to a pointer to parameters to be loaded into the Baud rate generator. Martin Minow decvax!minow