Rev 122 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 122 | Rev 132 | ||
---|---|---|---|
Line 89... | Line 89... | ||
89 | 89 | ||
90 | 90 | ||
91 | 91 | ||
92 | uint32_t *WStackAddrs = NULL; |
92 | uint32_t *WStackAddrs = NULL; |
93 | uint32_t *WStackBuffer; |
93 | uint32_t *WStackBuffer; |
94 | unsigned |
94 | unsigned int WStackNCycles; |
95 | unsigned |
95 | unsigned int WStackMaxCycles=100000; |
96 | CVAddressModifier *WStackAMs; |
96 | CVAddressModifier *WStackAMs; |
97 | CVDataWidth *WStackDWs; |
97 | CVDataWidth *WStackDWs; |
98 | CVErrorCodes *WStackECs; |
98 | CVErrorCodes *WStackECs; |
99 | 99 | ||
100 | 100 | ||
101 | uint32_t *RStackAddrs =NULL; |
101 | uint32_t *RStackAddrs =NULL; |
102 | unsigned |
102 | unsigned int RStackNCycles; |
103 | unsigned |
103 | unsigned int RStackMaxCycles=100000; |
104 | CVAddressModifier *RStackAMs; |
104 | CVAddressModifier *RStackAMs; |
105 | CVDataWidth *RStackDWs; |
105 | CVDataWidth *RStackDWs; |
106 | CVErrorCodes *RStackECs; |
106 | CVErrorCodes *RStackECs; |
107 | 107 | ||
108 | 108 | ||
Line 114... | Line 114... | ||
114 | RStackDWs[RStackNCycles] = DW; |
114 | RStackDWs[RStackNCycles] = DW; |
115 | //int i=RStackNCycles; |
115 | //int i=RStackNCycles; |
116 | //printf("AppendRead %d ADDR= 0x%0X AM= 0x%0X DW= 0x%0X \n", i,RStackAddrs[i],RStackAMs[i], RStackDWs[i]); |
116 | //printf("AppendRead %d ADDR= 0x%0X AM= 0x%0X DW= 0x%0X \n", i,RStackAddrs[i],RStackAMs[i], RStackDWs[i]); |
117 | RStackNCycles++; |
117 | RStackNCycles++; |
118 | } else { |
118 | } else { |
119 | printf("Increase DataBuffer RStackMaxCycles =%d\n", RStackMaxCycles); |
119 | printf("Increase DataBuffer RStackMaxCycles =%d xx\n", RStackMaxCycles); |
120 | } |
120 | } |
121 | return RStackNCycles; |
121 | return RStackNCycles; |
122 | } |
122 | } |
123 | 123 | ||
124 | short CAEN_VME_appendwrite(unsigned long Address, void *Data, CVAddressModifier AM, CVDataWidth DW) { |
124 | short CAEN_VME_appendwrite(unsigned long Address, void *Data, CVAddressModifier AM, CVDataWidth DW) { |
Line 127... | Line 127... | ||
127 | WStackBuffer[WStackNCycles] = *((uint32_t *) Data); |
127 | WStackBuffer[WStackNCycles] = *((uint32_t *) Data); |
128 | WStackAMs[WStackNCycles] = AM; |
128 | WStackAMs[WStackNCycles] = AM; |
129 | WStackDWs[WStackNCycles] = DW; |
129 | WStackDWs[WStackNCycles] = DW; |
130 | WStackNCycles++; |
130 | WStackNCycles++; |
131 | } else { |
131 | } else { |
132 | printf("Increase DataBuffer WStackMaxCycles =%d\n", WStackMaxCycles); |
132 | printf("Increase DataBuffer WStackMaxCycles =%d xx\n", WStackMaxCycles); |
133 | } |
133 | } |
134 | return 0; |
134 | return 0; |
135 | } |
135 | } |
136 | 136 | ||
137 | short CAEN_VME_MultiReadReset() { |
137 | short CAEN_VME_MultiReadReset() { |