AMOSi:Serial Status

From Amiga Coding
Revision as of 01:51, 17 November 2007 by Spellcoder (talk | contribs) (1 revision(s))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

an example can be found on AMOSPro_Examples:Examples/H-4/Help_47.AMOS


Provides you with detailed information about the current state of the serial port.


s=Serial Status(channel)

s is a bit-map holding the state of fifteen different parameters.


If the bit is set to the value under "active", the associated event has been successfully detected.


Bit Active Function


0-1 - reserved
2 1 Parallel "select" on the A1000 3 0 DSR (Data Set Ready) 4 0 CTS (Clear To Send) 5 0 Carrier Detect 6 0 RTS (Ready To Send) 7 0 DTR (Data Terminal Ready) 8 1 hardware overrun 9 1 break sent (most recent output) 10 1 break received (as latest input) 11 1 transmit x-OFF 12 1 receive x-OFF 13-15 - reserved