Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_comstat() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_COMSTAT()

 DESCRIPTION

 C_COMSTAT() returns the current status of the specified COM port.

 SYNTAX

 C_COMSTAT(port)

 PARAMETERS

 port (N) is the COM port to read (1=COM1, 2=COM2, etc.).  The value
 can be any valid COM port number.

 RETURNS

 C_COMSTAT() returns the current status of the COM port.  The
 following values indicate the status of the COM port.

 RETURN VALUE    DESCRIPTION
 ------------    -----------
 -1              Error / not ready
  0              Receive data ready
  1              Overrun error detected
  2              Parity error detected
  3              Framing error detected
  4              Break error detected
  5              Transmission hold register empty
  6              Transmission shift register empty
  7              Timed-out

 EXAMPLES

 if c_comstat(1) = 0
   c_comwrite(1, "Send this string to COM1")
 endif


See Also: C_COMINIT() C_COMWRITE() C_COMREAD() C_ISCOM() C_ISMODEM()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson