Function | ClearCom8000
Description | Clears input buffer of specific COM port of multi-serial module. This function is used for C/C++ compiler.
Function Prototype | int ClearCom8000(int slot, int port)
Return | 0: no error other : failure
slot | Specified slot of the I-8000 system Range from 0 to 3 for 4 slot Range from 0 to 7 for 8 slot
port | 0, 1 ==> I-8112 and I-8142 0, 1, 2, 3 ==> I-8114 and I-8144
Example |
Function | Ret=ClearCom8000(0,1);
Return | 0 (success)
Description | Clears COM1 of multi-serial module that plugged on slot0 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 |