Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telix/SALT v3.15 & RS-232, Hayes - <b>set_cparams</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  SET_CPARAMS

  .  Summary

  set_cparams(int <baud>, int <parity>, int <data>, int <stop>);

  .  Description

  The set_cparams function is used to set the communications param-
  eters in use on the current communications port. Allowable <baud>
  values are 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, and
  115200. <parity> is an integer number which stands for the parity to
  use. Allowable values are 0, 1, and 2, which stand for None, Even,
  and Odd parity, respectively. <data> is the data bits setting to
  use; allowable values are 7 or 8. <stop> is the stop bits setting to
  use; allowable values are 1 or 2. Note that some combinations of
  settings are illegal.

  .  Return Value

  If all the settings are legal values, a non-zero (TRUE) value is re-
  turned, otherwise a value of -1 is returned.

  .  Example

  set_cparams(2400, 0, 8, 1);

  set_cparams(9600, get_parity(), get_datab(), get_stopb());

See Also: set_port

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