Files correlati : at8.exe at8900a.msk Ricompilazione Demo : [ ] Commento : varie su procedure di acquisizione dati da CT git-svn-id: svn://10.65.10.50/trunk@11271 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			42 lines
		
	
	
		
			802 B
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			802 B
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
#include <xvt.h>
 | 
						|
#include <strings.h>
 | 
						|
#include <checks.h>
 | 
						|
 | 
						|
#include "at8.h"
 | 
						|
 | 
						|
#define usage   "Error - usage : %s -{0|1|2|3|4|5|6|7|8|9}"
 | 
						|
 | 
						|
int main(int argc,char** argv)
 | 
						|
 | 
						|
{
 | 
						|
  int             rt = -1 ;
 | 
						|
  const int r = (argc > 1) ? atoi(&argv[1][1]) : -1;
 | 
						|
 | 
						|
  switch (r)
 | 
						|
  {
 | 
						|
  case 0:
 | 
						|
    rt = at8100(argc,argv) ; break;
 | 
						|
  case 1:
 | 
						|
    rt = at8200(argc,argv) ; break;
 | 
						|
  case 2:
 | 
						|
    rt = at8300(argc,argv) ; break;
 | 
						|
  case 3:
 | 
						|
    rt = at8400(argc,argv) ; break;
 | 
						|
  case 4:
 | 
						|
    rt = at8500(argc,argv) ; break;
 | 
						|
  case 5:
 | 
						|
    //rt = at8600(argc,argv) ; break;
 | 
						|
  case 6:
 | 
						|
    rt = at8700(argc,argv) ; break;
 | 
						|
  case 7:
 | 
						|
    rt = at8800(argc,argv) ; break;
 | 
						|
  case 8:
 | 
						|
    rt = at8900(argc,argv) ; break;
 | 
						|
  case 9:
 | 
						|
    rt = at8a00(argc,argv) ; break;
 | 
						|
  default:
 | 
						|
    error_box(usage, argv[0]) ; break;
 | 
						|
  }
 | 
						|
  return rt;
 | 
						|
}
 |