iiView iVIEW-100 Series Manuel D’Utilisation

Page de 187
 iVIEW-100 Series user’s Manual, 2006, v2.0 -----  120 

  ClearCom() 
 
Func.: 
Clear all the data in COM, COM number is not fixed 
 
Syntax: 
int ClearCom(int port); 
 
Header: 
#include ”iVIEW.h” 
 
Description:  Clear all the data in COM, COM number is not fixed 
 
Example: 
  Please refer to “InstallCom()” for example. 
 
 

  ClearCom1() 
 
Func.: 
Clear all the data in COM1, fix on COM1 
 
Syntax: 
int ClearCom1(void); 
 
Header: 
#include ”iVIEW.h” 
 
Description:  Clear all the data in COM1, fix on COM1 
 
Example: 
  Please refer to “InstallCom1()” for example. 
 
 

  ToCom() 
 
Func.: 
Send data to COM, COM number is not fixed 
 
Syntax: 
int ToCom(int port); 
 
Header: 
#include ”iVIEW.h” 
 
Description:  Send data to COM, COM number is not fixed, it’s changeable by “port”. 
 
Example: 
  Please refer to “InstallCom()” for example. 
 
 

  ToCom1() 
 
Func.: 
Send data to COM1, fix on COM1 
 
Syntax: 
int ToCom1(void); 
 
Header: 
#include ”iVIEW.h” 
 
Description:  Send data to COM1, fix on COM1 
 
Example: 
  Please refer to “InstallCom1()” for example. 
 
 

  printCom() 
 
Func.: 
Print data to COM & PC, COM number is not fixed 
 
Syntax: 
int printCom(int port,char *fmt,...); 
 
Header: 
#include ”iVIEW.h” 
 
Description:  Print data to COM, COM number is not fixed, it’s changeable by “port”. 
To produce a formatted output, similar to “printf” of standard C library. 
 
Example: 
  Please refer to “InstallCom()” for example. 
 
 

  printCom1() 
 
Func.: 
Print data to COM1, fix on COM1 
 
Syntax: 
int printCom_1(char *fmt,...); 
 
Header: 
#include ”iVIEW.h” 
 
Description:  Print data to COM1, fix on COM1 
To produce a formatted output, similar to “printf” of standard C library. 
 
Example: 
  Please refer to example “InstallCom()”, it is similar to printCom().