Difference between revisions of "AMOSi:Serial Status"

From Amiga Coding
Jump to: navigation, search
m (1 revision(s))
 
(Extracted from the AMOSPro V2.00 helpfile)
(No difference)

Revision as of 02:45, 17 November 2007

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