fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/kaclib/kacfunctions.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           kacfunctions.cpp  -  description
00003                              -------------------
00004     begin                : Di Aug 08 2006
00005     copyright            : (C) 2006 by
00006     email                :
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 
00019 
00020 extern "C" {
00021 
00022 long getGain(long col, long row);
00023 
00024 void getGainMatrix(long *matrix);
00025 
00026 void setGain(long col , long row, long value);
00027 
00028 void setGainMatrix(long *value);
00029 
00030 long getThreshold(long col, long row);
00031 
00032 void setThreshold(long col, long row, long value);
00033 
00034 void enableTrigger(long col, long mask);
00035 
00036 long isRunMode();
00037 
00038 long isDebugMode();
00039 
00040 void setRunMode();
00041 
00042 void setDebugMode();
00043 
00044 void setTime();
00045 
00046 long getTime();
00047 
00048 void setShapingTime(long time);
00049 
00050 long getShapingTime();
00051 
00052 void initEventLoop();
00053 
00054 void stopEventLoop();
00055 
00056 void getEvent(long *sec, long *subsec, long *col, long *row, long *energy, long *adc);
00057 
00058 }