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_isri()</b> - return ri status http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_isri() - return RI status

   lRI := tp_isri(nPort)

   nPort       Serial port number.

   Returns     TRUE if RI set, FALSE if cleared.

   Returns the status of the RI input: TRUE if RI is asserted, FALSE if
   RI is negated.  RI is the Ring Indicator input.  It is usually
   asserted by a modem when it detects an incoming call.

   Normally you would not use tp_isri() to detect an incoming call, but
   set the modem to auto-answer (for Hayes-compatible modems, this is
   done by sending the modem an ATS0=n command, where "n" is non-zero),
   use tp_waitfor() to look for the word "RING", or use tp_onmodem() to
   post a request for notification when RI changes.

   Example:

       if tp_isri(1)
           ? "RI is high"
       endif

See Also: tp_mstat() tp_onmodem()

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