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 6
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[]); extern int HiSlipGpibMain(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); } else if(strstr(argv[1], "hsrv")) { return HiSlipGpibMain(argc, argv); } } return 1; }
Go to most recent revision | Compare with Previous | Blame | View Log