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_reopen()</b> - reopen serial port http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_reopen() - reopen serial port

   nError := tp_reopen(nPort, [nIsize], [nOsize])

   nPort       Serial port number.
   nIsize      Input buffer size, default 1536.
   nOsize      Output buffer size, default 1536.

   Reopens a serial port which was previously opened, then closed with
   tp_close(nPort, nTimeout, .T.).  Serial parameters retain the same
   values they had before the port was closed.  If DTR was enabled, it
   is left enabled as by tp_ctrldtr(1).  If RTS was enabled, it is left
   enabled as by tp_ctrlrts(1).

   Example:

       tp_close(1, 0, .T.)
       run dsz rz
       tp_reopen(1)

See Also: tp_close() tp_open()

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