#ifndef SLS_DETECTOR_DEFS_H #define SLS_DETECTOR_DEFS_H #include typedef float float32_t; typedef int int32_t; /** \file sls_detector_defs.h This file contains all the basic definitions common to the slsDetector class and to the server programs running on the detector * @author Anna Bergamaschi * @version 0.1alpha (any string) * @see slsDetector */ /** default maximum string length */ #define MAX_STR_LENGTH 1000 /** get flag form most functions */ #define GET_FLAG -1 /** structure for a detector channel should not be used by unexperienced users \see ::channelRegisterBit */ typedef struct { int chan; /**< is the channel number */ int chip; /**< is the chip number */ int module; /**< is the module number */ int64_t reg; /**< is the is the channel register (e.g. trimbits, calibration enable, comparator enable...) */ } sls_detector_channel; /** structure for a detector chip should not be used by unexperienced users \see ::chipRegisterBit ::channelRegisterBit */ typedef struct { int chip; /**< is the chip number */ int module; /**< is the module number */ int nchan; /**< is the number of channels in the chip */ int reg; /**