OpenCores
URL https://opencores.org/ocsvn/gpib_controller/gpib_controller/trunk

Subversion Repositories gpib_controller

[/] [gpib_controller/] [trunk/] [prototype_1/] [PC_software/] [test_src/] [main.c] - Rev 7

Go to most recent revision | Compare with Previous | Blame | View Log

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
 
#include "GpibRegAccess.h"
 
 
#define CHECK(x) if(!(x)) goto error;
 
extern int gpibExplorerMain(int argc, char* argv[]);
extern int rawRegAccessMain(int argc, char* argv[]);
extern int listenOnlyMain(int argc, char* argv[]);
 
 
int main(int argc, char *argv[]) {
 
	if(argc == 2)
	{
		if(strstr(argv[1], "ge"))
		{
			return gpibExplorerMain(argc, argv);
		} else if(strstr(argv[1], "rra"))
		{
			return rawRegAccessMain(argc, argv);
		} else if(strstr(argv[1], "lo"))
		{
			return listenOnlyMain(argc, argv);
		}
	}
 
	return 1;
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.