Clickserialportconfigurephysical – Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual
Page 176
APPENDIX
• CLICK 500 DEVELOPER GUIDE
175
ClickSerialPortConfigurePhysical
The virtual port specified will change its settings to match those given.
˽
LIBRARY – click500serial.lib
˽
SYNTAX –
int ClickSerialPortConfigurePhysical( int portId, long baudRate,
int dataBits, char parity );
˽
PARAMETER1 – The port which the settings are to be changed. Valid Physical Ports:
_485TOP, _485TBUS, _232FRONT, _232TOP
˽
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: