Function ToCom8000nBytes

Description Sends n bytes to specific COM port of  multi-serial module.
This function is used for C/C++ compiler.

Function Prototype int ToCom8000nBytes(int slot, int port, char *buf, int num)
Return bytes read from buffer (0 ~ num)
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
*buf pointer to indicate the output data
num bytes of buf that want to be sent 
Example
Function Ret = ToCom8000nBytes(0,1,Buf,100);
Return 0 (success)
Description Sends 100 bytes to COM1 of multi-serial module that plugged on slot 0 of I-8000 MCU.

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