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

beamtime/cern-oct11/mbs/madc32lib.h (r4864/r1770)

Go to the documentation of this file.
00001 // MADC-32 for CBM
00002 // DE - 10.11.10 first version
00003 // SL - 26.08.11 declare all respective methods here
00004 
00005 #ifndef MADC32LIB_H
00006 #define MADC32LIB_H
00007 
00008 
00009 typedef struct
00010 {
00011   long  volatile *pl_madc_dat     ;
00012   
00013   short volatile *p16_thres       [32];
00014   
00015   short volatile *p16_addr_src    ;
00016   short volatile *p16_addr_reg    ;
00017   short volatile *p16_mod_id      ;
00018   short volatile *p16_soft_reset  ;
00019   short volatile *p16_firm_rev    ;
00020   
00021   short volatile *p16_buf_dat_len ;
00022   short volatile *p16_dat_len_form;
00023   short volatile *p16_read_reset  ;
00024   short volatile *p16_mult_evt    ;
00025   short volatile *p16_mark_typ    ;
00026   short volatile *p16_start_acq   ;
00027   short volatile *p16_fifo_reset  ;
00028   short volatile *p16_dat_ready   ;
00029   
00030   short volatile *p16_bank_op     ;
00031   short volatile *p16_adc_resol   ;
00032   short volatile *p16_out_form    ;
00033   short volatile *p16_adc_overwr  ;
00034   short volatile *p16_slc_off     ;
00035   short volatile *p16_skip_oor    ;
00036   
00037   short volatile *p16_hold_delay0 ;
00038   short volatile *p16_hold_delay1 ;
00039   short volatile *p16_hold_width0 ;
00040   short volatile *p16_hold_width1 ;
00041   short volatile *p16_use_gg      ;
00042   
00043   short volatile *p16_input_range ;
00044   short volatile *p16_ecl_term    ;
00045   short volatile *p16_ecl_gat1_osc;
00046   short volatile *p16_ecl_fs_reset;
00047   short volatile *p16_ecl_busy    ;
00048   short volatile *p16_nim_gat1_osc;
00049   short volatile *p16_nim_fc_reset;
00050   short volatile *p16_nim_busy    ;
00051   
00052   short volatile *p16_pulse_stat  ;
00053 } s_madc32;
00054 
00055 
00056 int f_get_madc32_ptr(long l_madc_base, s_madc32 *ps_madc32);
00057 void madc32_init(s_madc32 *ps_madc32, int isdubna);
00058 long madc32_read(long *pl_dat, s_madc32 *ps_madc32);
00059 
00060 #endif

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