Subversion Repositories f9daq

Rev

Rev 123 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 123 Rev 134
Line 32... Line 32...
32
int VME_CONNECTED() {
32
int VME_CONNECTED() {
33
 
33
 
34
  return  VME_interface;
34
  return  VME_interface;
35
}
35
}
36
 
36
 
-
 
37
short VME_START (int interface) {
37
short  __stdcall VME_START (int interface) {
38
//short  __stdcall VME_START (int interface) { 
38
 
-
 
39
 
39
 
40
  VME_interface=interface;
40
  VME_interface=interface;
41
  switch (VME_interface) {
41
  switch (VME_interface) {
42
    case CAEN_V1718:
42
    case CAEN_V1718:
43
      CAEN_VME_START (NULL);
43
      CAEN_VME_START (NULL);
Line 45... Line 45...
45
      VME_W_Ptr  =  CAEN_VME_W;
45
      VME_W_Ptr  =  CAEN_VME_W;
46
 
46
 
47
      VME_MW_Ptr =  CAEN_VME_MW;
47
      VME_MW_Ptr =  CAEN_VME_MW;
48
      VME_MR_Ptr =  CAEN_VME_MR;
48
      VME_MR_Ptr =  CAEN_VME_MR;
49
 
49
 
50
      VME_MW_Ptr =  CAEN_VME_MW;
50
      VME_MW_Ptr =  CAEN_VME_MW;
51
      VME_MR_Ptr =  CAEN_VME_MR;
51
      VME_MR_Ptr =  CAEN_VME_MR;
52
 
52
 
53
      VME_MWEXEC_Ptr =  CAEN_VME_MWEXEC;
53
      VME_MWEXEC_Ptr =  CAEN_VME_MWEXEC;
54
      VME_MREXEC_Ptr =  CAEN_VME_MREXEC;
54
      VME_MREXEC_Ptr =  CAEN_VME_MREXEC;
55
 
55
 
56
      VME_MWRST_Ptr =  CAEN_VME_MWRST;
56
      VME_MWRST_Ptr =  CAEN_VME_MWRST;
57
      VME_MRRST_Ptr =  CAEN_VME_MRRST;
57
      VME_MRRST_Ptr =  CAEN_VME_MRRST;
58
 
58
 
59
 
59
 
60
      break;
60
      break;
Line 66... Line 66...
66
 
66
 
67
      VME_MW_Ptr =  WIENVME_VME_MW;
67
      VME_MW_Ptr =  WIENVME_VME_MW;
68
      VME_MR_Ptr =  WIENVME_VME_MR;
68
      VME_MR_Ptr =  WIENVME_VME_MR;
69
 
69
 
70
      VME_MW_Ptr =  WIENVME_VME_MW;
70
      VME_MW_Ptr =  WIENVME_VME_MW;
71
      VME_MR_Ptr =  WIENVME_VME_MR;
71
      VME_MR_Ptr =  WIENVME_VME_MR;
72
 
72
 
73
      VME_MWEXEC_Ptr =  WIENVME_VME_MWEXEC;
73
      VME_MWEXEC_Ptr =  WIENVME_VME_MWEXEC;
74
      VME_MREXEC_Ptr =  WIENVME_VME_MREXEC;
74
      VME_MREXEC_Ptr =  WIENVME_VME_MREXEC;
75
 
75
 
76
      VME_MWRST_Ptr =  WIENVME_VME_MWRST;
76
      VME_MWRST_Ptr =  WIENVME_VME_MWRST;
77
      VME_MRRST_Ptr =  WIENVME_VME_MRRST;
77
      VME_MRRST_Ptr =  WIENVME_VME_MRRST;
78
      break;
78
      break;
79
    case WIENER_VMUSB:
79
    case WIENER_VMUSB:
80
      WIENER_VMUSB_VME_START("VM0120");
80
      WIENER_VMUSB_VME_START("VM0120");
81
      VME_R_Ptr  =  WIENER_VMUSB_VME_R;
81
      VME_R_Ptr  =  WIENER_VMUSB_VME_R;
82
      VME_W_Ptr  =  WIENER_VMUSB_VME_W;
82
      VME_W_Ptr  =  WIENER_VMUSB_VME_W;
83
 
83
 
84
      VME_MW_Ptr =  WIENER_VMUSB_VME_MW;
84
      VME_MW_Ptr =  WIENER_VMUSB_VME_MW;
85
      VME_MR_Ptr =  WIENER_VMUSB_VME_MR;
85
      VME_MR_Ptr =  WIENER_VMUSB_VME_MR;
86
 
86
 
87
      VME_MW_Ptr =  WIENER_VMUSB_VME_MW;
87
      VME_MW_Ptr =  WIENER_VMUSB_VME_MW;
88
      VME_MR_Ptr =  WIENER_VMUSB_VME_MR;
88
      VME_MR_Ptr =  WIENER_VMUSB_VME_MR;
89
 
89
 
90
      VME_MWEXEC_Ptr =  WIENER_VMUSB_VME_MWEXEC;
90
      VME_MWEXEC_Ptr =  WIENER_VMUSB_VME_MWEXEC;
91
      VME_MREXEC_Ptr =  WIENER_VMUSB_VME_MREXEC;
91
      VME_MREXEC_Ptr =  WIENER_VMUSB_VME_MREXEC;
92
 
92
 
93
      VME_MWRST_Ptr =  WIENER_VMUSB_VME_MWRST;
93
      VME_MWRST_Ptr =  WIENER_VMUSB_VME_MWRST;
94
      VME_MRRST_Ptr =  WIENER_VMUSB_VME_MRRST;
94
      VME_MRRST_Ptr =  WIENER_VMUSB_VME_MRRST;
Line 96... Line 96...
96
 
96
 
97
  }
97
  }
98
 
98
 
99
  return 0;
99
  return 0;
100
}
100
}
101
 
-
 
-
 
101
short    VME_STOP () {
102
short   __stdcall VME_STOP () {
102
//short   __stdcall VME_STOP () {
103
  switch (VME_interface) {
103
  switch (VME_interface) {
104
    case CAEN_V1718:
104
    case CAEN_V1718:
105
 
105
 
106
      CAEN_VME_STOP( );
106
      CAEN_VME_STOP( );
107
      break;
107
      break;