Clickserialporttransmit – Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual
Page 181
180
APPENDIX • CLICK 500 DEVELOPER GUIDE
ClickSerialPortTransmit
Data in dataArray is transmitted onto the virtual port virtualPortId.
˽
LIBRARY – click500serial.lib
˽
SYNTAX –
int ClickSerialPortTransmit( int virtualPortId, int numBytes,
char* dataArray );
˽
PARAMETER1 – The virtual port to transmit the data onto.
˽
PARAMETER2 – The number of bytes to transmit. The maximum number of bytes is
256. If numBytes is greater than 256, only the first 256 will be transmitted. When trans-
mitting at slower baud rates you may need to delay between calls to ClickSerialPort
transmit in order to prevent overrunning the tx buffers.
˽
PARAMETER3 – The location where the data to be transmitted is stored.
˽
RETURN VALUE – 0 - Success/1 – Failure
˽
SEE ALSO – ClickSerialPortReceive