Description: Checks whether there is any data stored in the COM
Port buffer. The COM Port number is not assigned and
can be modified using the “port” parameter.
port: assigns the COM port number
Example: Please refer to “InstallCom()” for an example.
IsCom1()
Function: Checks
whether
there
is
any data stored in the buffer of
COM1.
Syntax
int IsCom1(void);
Header: #include
”7188xc.h”
Description: Checks whether there is any data stored in the buffer of
COM1
Example: Please refer to “InstallCom1()” for an example.
ReadCom()
Function: Reads data from the COM Port buffer. The COM Port
number is not assigned.
Syntax:
int ReadCom(int port);
Header: #include
”7188xc.h”
Description: Reads data from the COM Port buffer. The COM Port
number is not assigned and can be modified using the
“port” parameter.
port: assigns the COM Port number
Example: Please refer to “InstallCom()” for an example.
ReadCom1()
Function: Reads data from the buffer of COM1.
Syntax:
int ReadCom1(void);
Header: #include
”7188xc.h”
Description: Reads data from the buffer of COM1. Assigned to
COM1.
Example: Please refer to “InstallCom1()” for an example.
ClearCom()
Function: Clears the data currently stored in the COM Port buffer.
The COM Port number is not assigned.
Syntax:
int ClearCom(int port);
I-7188XC Series User’s Manual(Ver.1.0, Apr/2007,7MH-21-10) ---
104
Содержание I-7188XC Series
Страница 87: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 87...
Страница 136: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 136...
Страница 142: ...Step 8 Make the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 142...
Страница 149: ...Step 8 Rebuild the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 149...