Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_cominit() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_COMINIT()

 DESCRIPTION

 C_COMINIT() initializes the specified COM port to the given
 communication parameters.

 SYNTAX

 C_COMINIT(port, data, stop, parity, baud)

 PARAMETERS

 port (N) is the COM port to initialize (1=COM1, 2=COM2, etc.).  The
 value can be any valid COM port number.

 data (N) is the number of data bits.  The valid values for data
 bits are 7 and 8.

 stop (N) is the number of stop bits.  The valid values for stop
 bits are 1 and 2.

 parity (N) is the parity setting.  The valid values for parity are:
 0=None, 1=Odd, and 2=Even.

 baud (N) is the baud rate to set for the port.  The valid baud
 rates are:  110, 150, 300, 600, 1200, 2400, 4800, and 9600.

 RETURNS

 There is no return value.

 EXAMPLES

 && initialize COM1 for mainframe communications
 && (com=1, data=7, stop=1, parity=even, baud=2400)
 c_cominit(1, 7, 1, 2, 2400)
 ...
 ...

 && initialize COM1 for laser printer via serial
 && (com=1, data=8, stop=1, parity=none, baud=9600)
 c_cominit(1, 8, 1, 0, 9600)


See Also: C_COMSTAT() C_COMREAD() C_COMWRITE() C_ISCOM() C_ISMODEM()

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