Function _SetBaudrate

Description Sets baudrate of specific COM port of multi-serial module.
This function is used for C/C++ compiler.

Function Prototype int _SetBaudrate(int slot, int port, unsigned long baudrate)
Return 0 : no error
others : failure
slot 0 ~ 3 for 4 slots
0 ~ 7 for 8 slots
port 0, 1         ==> I-8112 and I-8142
0, 1, 2, 3 ==> I-8114 and I-8144
baudrate 300,600,1200,2400,4800,9600,
19200,38400,57600,115200

Example
Function Ret = _SetBaudrate(0,1,9600);
Return 0 (success)
Description Sets the baudrate of COM1 of multi-serial module that plugged on slot0 to 9600

Reference SetInBufSize
SetOutBufSize
InstallCom8000
_SetBaudrate
_SetDataFormat
RestoreCom8000
IsCom8000
ToCom8000
ToCom8000Str
ToCom8000nBytes
ReadCom8000
ReadCom8000nBytes

Modules I-8112, I-8114, I-8142, I-8144

Back to Previous Page