Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telepathy Communications Library - <b>tp_lstat()</b> - return line status http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_lstat() - return line status

   cStat := tp_lstat(nPort)

   nPort       Serial port number.

   Returns     Line status state string.

   The line status mask records serial input errors.  This function
   reads the status mask, clears it, and returns either an empty string
   if there were no errors or a string consisting of one or more of the
   following characters:

       "O" Input buffer overrun.
       "P" Parity error.
       "F" Framing error.
       "B" Break received.

   Example:

       if "O" $ tp_lstat(1)
           ? "Buffer overrun"
       endif

See Also: tp_parity()

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