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_break()</b> - send serial break http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_break() - send serial break

   tp_break(nPort, [nTime])

   nPort       Serial port number.
   nTime       BREAK time, default 0.25 second.

   Sends a serial BREAK.  A BREAK is a series of zero bits longer than a
   normal character.  Some hardware recognizes a BREAK as a "stop" or
   "interrupt" signal.  The default value for nTime is 0.25 (1/4
   second).

   If there are data buffered for output, the BREAK is sent before the
   next character.  You may wish to flush the output buffer first.
   tp_break() does not respect handshaking, and will send even if output
   has been stopped by handshaking or flow control.

   Example:

       tp_break(1, 0.125)  // Send 1/8-second BREAK.

See Also: tp_flush()

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