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] - Blame information for rev 7

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

Line No. Rev Author Line
1 3 Andrewski
#include <stdio.h>
2
#include <stdlib.h>
3
#include <string.h>
4
#include <unistd.h>
5
 
6
#include "GpibRegAccess.h"
7
 
8
 
9
#define CHECK(x) if(!(x)) goto error;
10
 
11
extern int gpibExplorerMain(int argc, char* argv[]);
12
extern int rawRegAccessMain(int argc, char* argv[]);
13
extern int listenOnlyMain(int argc, char* argv[]);
14
 
15
 
16
int main(int argc, char *argv[]) {
17
 
18
        if(argc == 2)
19
        {
20
                if(strstr(argv[1], "ge"))
21
                {
22
                        return gpibExplorerMain(argc, argv);
23
                } else if(strstr(argv[1], "rra"))
24
                {
25
                        return rawRegAccessMain(argc, argv);
26
                } else if(strstr(argv[1], "lo"))
27
                {
28
                        return listenOnlyMain(argc, argv);
29
                }
30
        }
31
 
32
        return 1;
33
}

powered by: WebSVN 2.1.0

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