QSlowTypes.hh

Go to the documentation of this file.
00001 
00009 #ifndef _QSLOW_TYPE_HH_
00010 #define _QSLOW_TYPE_HH_
00011 
00012 #include <string>
00013 
00014 namespace QSlowTypes {
00015    
00017    enum QSlowMode_t
00018    {
00019       QSLOW_BASE_MODE  =0x00,     
00020       QSLOW_TUNING_MODE=0x01,     
00021       QSLOW_RUN_MODE   =0x02      
00022    };
00023    
00024    
00026    enum QSlowWriteStatus_t
00027    {
00028       QSLOW_WRITE_UNLOCKED =true,  
00029       QSLOW_WRITE_LOCKED   =false  
00030    };
00031    
00032    
00034    enum QSlowNumFormat_t
00035    {
00036       QSLOW_HEX =0, 
00037       QSLOW_DEC =1, 
00038       QSLOW_BIN =2  
00039    };
00040 
00041 
00043    enum QSlowPolarity_t
00044    {
00045       QSLOW_POS =true, 
00046       QSLOW_NEG =false 
00047    };
00048 
00049 
00051    enum QSlowOnOff_t
00052    {
00053       QSLOW_ON  =true, 
00054       QSLOW_OFF =false 
00055    };
00056    
00057 
00059    enum QSlowFEInput_t
00060    {
00061       QSLOW_BOLO = false, 
00062       QSLOW_TEST = true   
00063    };
00064    
00065    
00067    enum QSlowDevice_t
00068    {
00069       QSLOW_FRONTEND     =0x00,  
00070       QSLOW_BESSEL       =0x01,  
00071       QSLOW_PULSER       =0x02,  
00072       QSLOW_POWER_SUPPLY =0x03,  
00073       QSLOW_DIGITAL_MM   =0x04,  
00074       QSLOW_OSCILLOSCOPE =0x05,  
00075       QSLOW_FUN_GENERATOR=0x06,  
00076       QSLOW_UNKOWN       =0xFF   
00077    };
00078 
00079 
00081    enum QSlowEleInterface_t
00082    {
00083       QSLOW_PPORT        =0x01, 
00084       QSLOW_NETWORK      =0x02, 
00085       QSLOW_GPIB         =0x03
00086    };
00087 
00089    enum QSlowRLoad_t
00090    {
00091       QSLOW_RMIN = 0, 
00092       QSLOW_RMAX = 1  
00093    };
00094    
00095    
00097    enum QSlowRegs_t
00098    {
00099       MEM_A = 0,  
00100       MEM_B = 1,  
00101       DAC_H = 2,  
00102       DAC_L = 3,  
00103       MEM_C = 4,  
00104       MEM_D = 5,  
00105       BES_0 = 6,  
00106    };
00107 
00108    
00110    enum QSlowPSRegs_t
00111    {
00112       MEM_0 = 0, 
00113       MEM_1 = 1, 
00114       MEM_2 = 2, 
00115       MEM_3 = 3  
00116    };
00117 
00122    std::string ppDeviceToString(unsigned long PPortAddress);
00123    
00128    std::string modeToString(QSlowTypes::QSlowMode_t mode);
00129 
00130 
00131 
00136    std::string ifaceToString(QSlowTypes::QSlowEleInterface_t iface);
00137 
00138 
00143    std::string devToString(QSlowTypes::QSlowDevice_t dev);
00144 
00145 
00150    std::string onoffToString(QSlowTypes::QSlowOnOff_t sts);
00151 
00156    std::string polarityToString(QSlowTypes::QSlowPolarity_t pol);
00157 
00162    std::string inputToString(QSlowTypes::QSlowFEInput_t input);
00163 
00168    std::string ifaceToCmd(QSlowTypes::QSlowEleInterface_t iface);
00169 
00170    
00175    std::string devToCmd(QSlowTypes::QSlowDevice_t dev);
00176 
00181    QSlowTypes::QSlowDevice_t cmdToDev(const std::string& cmd);
00182 
00183 }
00184    
00185 #endif // _QSLOW_TYPE_HH_
00186    

Generated on Tue Nov 16 10:49:56 2010 for CUORE Software by  doxygen 1.5.6