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_baud()</b> - get or set baud rate http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_baud() - get or set baud rate

   nOldBaud := tp_baud(nPort, [nNewBaud])

   nPort       Serial port number.
   nNewBaud    New baud rate.

   Returns     Original baud rate.

   Gets or sets the baud rate used by a serial port.  A port may be set
   to one of these baud rates:

       75      110     150     300     600     1200    2400
       4800    9600    19200   38400   57600   115200

   If nNewBaud is omitted, tp_baud() just returns the current setting.
   If nNewBaud is specified, it changes the setting and returns the
   original value.

   Example:

       tp_baud(1, 9600)    // Set port 1 to 9600 baud.

See Also: tp_data() tp_parity() tp_open() tp_stop()

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