fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/katrinhw/kaflttriggercontrolreg.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           kaflttriggercontrolreg.h  -  description
00003                              -------------------
00004     begin                : Mo Jul 11 2005
00005     copyright            : (C) 2005 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 #ifndef KAFLTTRIGGERCONTROLREG_H
00019 #define KAFLTTRIGGERCONTROLREG_H
00020 
00021 #include <Hw/fltperiphregister.h>
00022 
00031 class KaFltTriggerControlReg : public FltPeriphRegister  {
00032 public: 
00033         KaFltTriggerControlReg(const char * name, int slotID, int regID, int r, int w, int len);
00034         ~KaFltTriggerControlReg();
00035 
00036 
00038   int getVersion(int fpga);
00039 
00042   bool isEnabled(int ch);
00043 
00047   bool isEnabled(int fpga, int ch);
00048 
00050   unsigned long isEnabled();
00051 
00055   void enable(unsigned long mask=0x3fffff);
00056 
00058   void disable(unsigned long mask=0x3fffff);
00059   
00060   /* Get mode of operation. For information
00061    * of the coding of the bit refer to control/status
00062    * register. */
00063   int getMode(int fpga);
00064 
00067   int getShapingTime(int fpga);
00068 
00071   void setShapingTime(int fpga, int samples); 
00072          
00073 };
00074 
00075 
00076 #endif