Specifications

174/201
BscSetCom
FUNCTION: Sets communications parameters of the serial port.
FORMAT: _declspec( dllexport )short APIENTRY BscSetCom(short nCid, short port,
DWORD baud, short parity, short clen, short stp);
ARGUMENTS: IN(Transfer)
nCid Communication handler ID number
port Communication port number 1:COM1,2:COM2,3:COM3,4:COM4,・・,255:COM255
baud Baud rate 150, 300, 600, 1200, 2400, 4800, 9600, 19200
parity Parity 0: None, 1: Odd, 2: Even
Clen Data length 7: 7 bits, 8: 8 bits
Stp Stop bit 0: 1 bit, 1: 1.5 bits, 2: 2 bits
OUT(Return)
None
Return Value
0:Error
1:Normal completion
REMARKS: Call Condition
Before calling this function, it is necessary to get the communication handler of the serial port with
BscOpen
function. After calling this function, communications can be done using the BscConnect
function.