![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/4/44/44414c02-d064-4424-ae12-8acc58561d02/44414c02-d064-4424-ae12-8acc58561d02-bg8f.png)
iVIEW-100 Series user’s Manual, 2006, v2.0 ----- 143
ReceiveResponseFrom7000()
Func.: Get the response from I-7000.
Syntax:
int ReceiveResponseFrom7000(int iPort, unsigned char *cCmd, long
lTimeout, int iChksum);
Header: #include ”iVIEW.h”
Description:
After call SendCmdTo7000(), user must call ReceiveResponseFrom7000()
except the command without response.
iPort: 1 for COM1, 3 for COM3……
cCmd: Response received from 7000. If checksum is ‘enable’
check and remove the checksum. The CR is removed.
lTimeout: Set the timeout, unit is check comport times. (unit is ms.)
iChecksum: 1 for enable checksum, 0 for disable checksum.
On success return NoError. On fail return Error code(refer to 7000 series).
Example: Please refer to “SendCmdTo7000()” for deatil information.
ascii_to_hex()
Func.: Change ASCII code to hexadecimal value.
Syntax:
int ascii_to_hex(char ascii);
Header: #include ”iVIEW.h”
Description:
Ascii: ASCII code char
Return interger.
Example: Please refer to “SendCmdTo7000()” for deatil information.
hex_to_ascii()
Func.: Change hexadecimal value to ASCII code.
Syntax:
extern char hex_to_ascii[16];
Header: #include ”iVIEW.h”
Description:
iPort: 1 for COM1, 2 for COM2.
cCmd: Response received from 7000. If checksum
is enable, the function will
check and remove the checksum. The CR is removed.
lTimeout: Set the timeout, unit is check comport times.
iChecksum: 1 for enable checksum, 0 for disable checksum.
On success return NoError. On fail return Error code(refer to 7000 series).
Example: Please refer to demo program “ts7065d3.c” for function usage.