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_data()</b> - get or set number of data bits http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_data() - get or set number of data bits

   nOldData := tp_data(nPort, [nNewData])

   nPort       Serial port number.
   nNewData    New data bits setting.

   Returns     Original data bits setting.

   Gets or sets the number of data bits used by a serial port.  A port
   may be set for 5, 6, 7, or 8 bits of data per character.  Eight bits
   (with no parity) is the normal setting for microcomputers, though
   seven bits (usually with even parity) is common on mainframes and
   UNIX systems.

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

   Example:

       tp_data(1, 7)       // Set port 1 to seven data bits.

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

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