
------------------------------------------------------------------------------
8. Get status of communication buffer and interface <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
rs_status
[Syntax]
#include <bios.h>
int rs_status( int channel ) ;
[Argument]
channel channel number ( = 1, 2 )
[Return]
Returns status of the communication interface and communication
buffers.
bit position Meaning
---------------+-----------------------+----------
0x8000 transmission stopped (send)
0x4000 ( reserved ) (send)
0x2000 Buffer full (send)
0x1000 ( reserved ) (send)
0x0800 receiving stopped (receive)
0x0400 ( reserved ) (receive)
0x0200 Buffer empty (receive)
0x0100 Buffer overrun (receive)
0x0080 DR ON (LSI)
0x0040 ( reserved ) (LSI)
0x0020 Framing error (LSI)
0x0010 Overrun error (LSI)
0x0008 Parity error (LSI)
0x0004 ( reserved ) (LSI)
0x0002 ( reserved ) (LSI)
0x0001 ( reserved ) (LSI)
[Description]
Gets status information of the communication interface and
communication buffers of the specified channel.