Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

camacs.h

Go to the documentation of this file.
00001 /*
00002  * MAX : camacs.h, 16.08.2002 -sg
00003  *
00004  * This file is part of Max data acquisition software
00005  * Copyright (C) 1997,98 Christian Rosen
00006  *
00007  * Max is free software; you can redistribute it and/or modify it
00008  * under the terms of the version 2 of GNU General Public License as
00009  * published by the Free Software Foundation.
00010  *
00011  * Max is distributed in the hope that it will be useful, but WITHOUT
00012  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00013  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00014  * for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * (see the file COPYING) in this directory; if not, write to the
00018  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  */
00020 
00021 #ifndef _CAMAC_H_
00022 #define _CAMAC_H_
00023 
00024 #define CAMAC_BEFEHL (1<<5)
00025 #define CAMAC_BEFEHLS_MASKE (3<<3)
00026 #define CAMAC_READ (0<<3)
00027 #define CAMAC_SET_STATUS_A (1<<3)
00028 #define CAMAC_WRITE (2<<3)
00029 #define CAMAC_SET_STATUS_B (3<<3)
00030 #define CAMAC_F 0
00031 #define CAMAC_A 1
00032 #define CAMAC_N 2
00033 #define CAMAC_D1 3
00034 #define CAMAC_D2 4
00035 #define CAMAC_D3 5
00036 #define F0 0
00037 #define F1 1
00038 #define F2 2
00039 #define F3 3
00040 #define F4 4
00041 #define A0 0
00042 #define A1 1
00043 #define A2 2
00044 #define A3 3
00045 #define A4 4
00046 #define A5 5
00047 #define A6 6
00048 #define A7 7
00049 #define A8 8
00050 #define A9 9
00051 #define A10 10
00052 #define A11 11
00053 #define A12 12
00054 #define A13 13
00055 
00056 #if defined(_CAMAC_C111A_)
00057         #define C111A_ADDR       0
00058 #endif
00059 
00060 // function prototypes for use with the CAMAC-interface
00061 int camac_init();
00062 int camac_close();
00063 int camac(int, int, int, unsigned int *);
00064 
00065 #endif

Generated at Mon Sep 2 18:21:03 2002 for MAX by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001