• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

include/roc/defines_roc.h (r4864/r2227)

Go to the documentation of this file.
00001 #ifndef ROC_DEFINES_ROC_H
00002 #define ROC_DEFINES_ROC_H
00003 
00004 
00005 #define KNUT_VERSION             0x02000100    // All parts share first 4 digits
00006 
00007 #define ROC_SUCCESS                       0    // Success
00008 #define ROC_READBACK_ERROR                1    // Readback failed (different value)
00009 #define ROC_ADDRESS_ERROR                 2    // Wrong / unexisting address
00010 #define ROC_VALUE_ERROR                   3    // Wrong value
00011 #define ROC_PERMISSION_ERROR              4    // Permission denied (to low level addresses)
00012 #define ROC_ANSWER_DELAYED                5    // The called function needs longer to run. //DEPRECATED
00013 #define ROC_NETWORK_TRANSMISSION_ERROR    6    // Some slow control udp-data packets got lost.
00014 #define ROC_I2C_ERROR                     7    // No Response (No Ack) Error on I2C bus.
00015 
00016 
00017 /************************************
00018  * address space
00019  ***********************************/
00020 
00021 //myOPB (ROC hardware)
00022 //#define myOPB_LOW                0x00000000    // LOW-Marker of myOPB-Range   //DEPRECATED
00023 //#define myOPB_HIGH               0x00ffffff    // HIGH-Marker of myOPB-Range  //DEPRECATED
00024 
00025 
00037 #define ROC_TYPE                  0x000000   // r    
00038 
00041 #define ROC_HWV                   0x000004   // r    
00042 
00046 #define ROC_FPGA_TYPE             0x000008   // r    
00047 
00052 #define ROC_ROCID                 0x000010   // r/w
00053 
00057 #define ROC_SVN_REVISION          0x000014   // r    
00058 
00062 #define ROC_BUILD_TIME            0x000018   // r    
00063 
00069 #define ROC_SYSTEM_RESET           0x000100    // w   
00070 
00071 #define ROC_ETH_HWV                0x100000   // r    Hardware-Version
00072 #define ROC_ETH_SWV                0x100004   // r    Software-Version
00073 
00074 #define ROC_ADDSYSMSG              0x000200   // w    Write Custom System-Message
00075 
00076 #define ROC_CMD_LST_NR             0x020000        // w
00077 #define ROC_CMD_LST_ACTIVE         0x020004        // w
00078 #define ROC_CMD_LST_MEM            0x021000        // w
00079 
00080 // different constants for commands list handling
00081 
00082 #define ROC_CMD_LST_SIZE           0x000800        // size of memory for commands lists
00083 #define ROC_CMD_LST_NUMBER         0x000008        // number of commands lists
00084 #define ROC_CMD_LST_PUT          0x02000000        // PUT command in commands list
00085 #define ROC_CMD_LST_ADDRMASK     0x00ffffff        // address mask for operations lists
00086 
00087 
00088 // /*!
00089 // * {ROC, read/write, 3 bit} This register holds the ROC number inserted into
00090 // * all data messages. 
00091 // * Part of \ref roc_iface_daq.
00092 // */
00093 //#define ROC_NUMBER                  0x00040    // r/w //DEPRECATED
00094 
00100 #define ROC_NX_TS_RESET             0x400010    // w   
00101 
00107 #define ROC_NX_FIFO_RESET          0x400014    // w   
00108 
00113 #define ROC_NX_INIT                 0x400018    // w  
00114 
00119 #define ROC_NX_BURST1                  0x400100    // r
00120 
00124 #define ROC_NX_BURST2                  0x400104    // r
00125 
00129 #define ROC_NX_BURST3                  0x400108    // r
00130 
00135 #define ROC_NX_THROTTLE            0x401200    // r
00136 
00137 
00138 //ROC/FEB Parameters
00139 
00143 #define CON19                       0
00144 
00147 #define CON20                       1
00148 
00149 #endif
00150 

Generated on Tue Dec 10 2013 04:52:22 for ROCsoft by  doxygen 1.7.1