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

beamtime/tof-tdctest/mbs/trigloglib.h (r4864/r4267)

Go to the documentation of this file.
00001 #ifndef TRIGLOGLIB_H
00002 #define TRIGLOGLIB_H
00003 
00004 typedef struct {
00005    long  volatile *pl_reset;
00006    long  volatile *pl_tb_ena;
00007    long  volatile *pl_tb_reduc1;
00008    long  volatile *pl_tb_reduc2;
00009    long  volatile *pl_d_latch; 
00010    long  volatile *pl_tb_version;
00011    long  volatile *pl_soft_trig;  
00012    long  volatile *pl_scal1[16];
00013    long  volatile *pl_scal2[16];
00014    long  volatile *pl_scal3[16];
00015    long  volatile *pl_scal4[16];
00016    long  volatile *pl_scal5[16];
00017    long  volatile *pl_scal_fc;
00018    long  volatile *pl_trig_pat;
00019    long  volatile *pl_input_pat;
00020    long  volatile *pl_frequ_1;
00021    long  volatile *pl_res_dout;
00022 // end VULOM4 triggerbox + scaler
00023 
00024 // VME addresses of VULOM3 sync sender 
00025    long  volatile *ev_reset;
00026 //   long  volatile *spill_enable;
00027    long  volatile *ev_counter;
00028    
00029    long  volatile *pl_ref_clock;
00030 
00031 // VME addresses of VULOM3 RPC Reset
00032    long  volatile *pl_eclout_pulse;
00033 
00034    long  sync_counter; // current read value of sync counter
00035    long  last_sync_counter; // previous read value of sync counter
00036 
00037 } s_triglog;
00038 
00039 void triglog_getptr(long l_virt_base, s_triglog* ps);
00040 
00041 void triglog_init(s_triglog* ps);
00042 
00043 long triglog_read(long* pl_dat, s_triglog* ps);
00044 
00045 void triglog_send_ecl_pulse(s_triglog* ps);
00046 
00047 void triglog_reset_scalers(s_triglog* ps);
00048 void triglog_reset_sync(s_triglog* ps);
00049 
00050 #endif

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