Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef V965__H
00009 #define V965__H
00010
00011 typedef struct
00012 {
00013 unsigned short volatile *ps_vme_v965_firm_rev;
00014 unsigned short volatile *ps_vme_v965_bclr[2];
00015 unsigned short volatile *ps_vme_v965_bset[2];
00016 unsigned short volatile *ps_vme_v965_csel;
00017 unsigned short volatile *ps_vme_v965_Iped;
00018 unsigned short volatile *ps_vme_v965_rese;
00019 unsigned short volatile *ps_vme_v965_thrl[32];
00020 unsigned short volatile *ps_vme_v965_vers;
00021 unsigned short volatile *ps_vme_v965_sn[2];
00022 unsigned short volatile *ps_vme_v965_tew;
00023 unsigned short volatile *ps_vme_v965_geo;
00024 unsigned short volatile *ps_vme_v965_oui[3];
00025 unsigned short volatile *ps_vme_v965_bid[3];
00026 unsigned short volatile *ps_vme_v965_cnt[2];
00027 unsigned short volatile *ps_vme_v965_str[2];
00028 long volatile *pl_vme_v965_fifo;
00029 } V965_QDC;
00030
00031 typedef struct
00032 {
00033 int geo;
00034 int crate;
00035 int pedestal;
00036 int threshold[32];
00037 } V965_Par;
00038
00039 int V965_QDC_create(V965_QDC *self, long baseAddress);
00040 int V965_QDC_initpar(int id, V965_Par *par);
00041 int V965_QDC_initparfromfile(int id, V965_Par *par);
00042 int V965_QDC_init(V965_QDC *self, V965_Par *par);
00043 int V965_QDC_readout(V965_QDC *self, long *pl_data);
00044
00045 #endif