Clickserialportconfigurevirtual – Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual
Page 177
176
APPENDIX • CLICK 500 DEVELOPER GUIDE
ClickSerialPortConfigureVirtual
The virtual port specified will change its settings to match those given.
˽
LIBRARY – click500serial.lib
˽
SYNTAX –
int ClickSerialPortConfigureVirtual( int virtPortId,
long baudRate,
int dataBits, char parity );
˽
PARAMETER1 – The port which the settings are to be changed. Valid Virtual Ports:V1,
V2, V3, V4
˽
PARAMETER2 – The baudrate to set the port to. Valid baud rates: 4800, 9600, 38400,
57600, 115200
˽
PARAMETER3 – The number of databits. Valid options: DATABIT_7, DATABIT_8
˽
PARAMETER4 – Status of the party bit. Valid options: PARITY_N, PARITY_O,
PARITY_E
˽
RETURN VALUE – 0 - Settings changed successfully/1 - Settings not changed
This manual is related to the following products: