🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #27805

Reading the RS232 parameters

#27805
From: Martin Minow
Date: Thu, 30 Jul 1987 00:02
23 lines
1377 bytes
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 <opsys.h>.  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
Technical Details
Message-ID: <123@decvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!columbia!rutgers!ames!ucbcad!ucbvax!decvax!minow
References: <8707272346.AA14688@orville.arpa>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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