AlcapDAQ  1
CAENDigitizer.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * CAEN SpA - Computing Division
4 * Via Vetraia, 11 - 55049 - Viareggio ITALY
5 * +390594388398 - www.caen.it
6 *
7 ***************************************************************************/
24 #ifndef __CAENDIGITIZER_H
25 #define __CAENDIGITIZER_H
26 
27 #include "CAENDigitizerType.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 #if !defined(CAEN_USE_DIGITIZERS) && !defined(IGNORE_DPP_DEPRECATED)
34 
35 #ifdef __GNUC__
36 #define DPP_DEPRECATED(func) func __attribute__ ((deprecated))
37 #elif defined(_MSC_VER)
38 #define DPP_DEPRECATED(func) __declspec(deprecated) func
39 #else
40 #pragma message("WARNING: DEPRECATED marking not supported on this compiler")
41 #define DPP_DEPRECATED(func) func
42 #endif
43 
44 #else
45 
46 #define DPP_DEPRECATED(func) func
47 
48 #endif
49 
50 
51 //#define CAEN_DGTZ_GetMaxNumAggregatesBLT CAEN_DGTZ_GetMaxNumEventsBLT
52 //#define CAEN_DGTZ_SetMaxNumAggregatesBLT CAEN_DGTZ_SetMaxNumEventsBLT
53 
54 
55 /**************************************************************************/
70 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_OpenDigitizer(CAEN_DGTZ_ConnectionType LinkType, int LinkNum, int ConetNode, uint32_t VMEBaseAddress, int *handle);
71 
72 
73 /**************************************************************************/
81 
82 
83 /**************************************************************************/
92 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_WriteRegister(int handle, uint32_t Address, uint32_t Data);
93 
94 
95 /**************************************************************************/
104 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_ReadRegister(int handle, uint32_t Address, uint32_t *Data);
105 
106 
107 /**************************************************************************/
116 
117 
118 /**************************************************************************/
127 
128 
129 /**************************************************************************/
137 
138 
139 /**************************************************************************/
147 
148 
149 /**************************************************************************/
157 
158 
159 /**************************************************************************/
167 
168 
169 /**************************************************************************/
181 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_SetInterruptConfig(int handle, CAEN_DGTZ_EnaDis_t state, uint8_t level, uint32_t status_id, uint16_t event_number, CAEN_DGTZ_IRQMode_t mode);
182 
183 
184 /**************************************************************************/
196 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_GetInterruptConfig(int handle, CAEN_DGTZ_EnaDis_t *state, uint8_t *level, uint32_t *status_id, uint16_t *event_number, CAEN_DGTZ_IRQMode_t *mode);
197 
198 
199 /**************************************************************************/
208 
209 
210 /**************************************************************************/
225 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_VMEIRQWait(CAEN_DGTZ_ConnectionType LinkType, int LinkNum, int ConetNode, uint8_t IRQMask, uint32_t timeout, int *VMEHandle);
226 
227 
228 /**************************************************************************/
235 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_VMEIRQCheck(int VMEHandle, uint8_t *Mask);
236 
237 
238 /**************************************************************************/
246 
247 
248 /**************************************************************************/
256 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_VMEIACKCycle(int VMEHandle, uint8_t level, int32_t *board_id);
257 
258 /**************************************************************************/
266 
267 
268 /**************************************************************************/
276 
277 
278 /**************************************************************************/
289 
290 
291 /**************************************************************************/
302 
303 
304 /**************************************************************************/
312 
313 
314 /**************************************************************************/
323 
324 
325 /**************************************************************************/
335 
336 
337 /**************************************************************************/
346 
347 
348 /**************************************************************************/
356 
357 
358 /**************************************************************************/
366 
367 
368 /**************************************************************************/
376 
377 
378 /**************************************************************************/
386 
387 
388 /**************************************************************************/
397 
398 /**************************************************************************/
407 
408 
409 
410 /**************************************************************************/
420 
421 
422 /**************************************************************************/
432 
433 
434 /**************************************************************************/
443 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_SetChannelGroupMask(int handle, uint32_t group, uint32_t channelmask);
444 
445 
446 
447 /**************************************************************************/
456 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_GetChannelGroupMask(int handle, uint32_t group, uint32_t *channelmask);
457 
458 
459 
460 /**************************************************************************/
468 
469 
470 
471 
472 
473 /**************************************************************************/
481 
482 
483 /**************************************************************************/
494 
495 /**************************************************************************/
504 
505 
506 /**************************************************************************/
516 
517 
518 
519 /**************************************************************************/
530 
531 
532 
533 /**************************************************************************/
543 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_SetGroupDCOffset(int handle, uint32_t group, uint32_t Tvalue);
544 
545 
546 
547 /**************************************************************************/
557 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_GetGroupDCOffset(int handle, uint32_t group, uint32_t *Tvalue);
558 
559 
560 
561 /**************************************************************************/
570 
571 
572 
573 /**************************************************************************/
582 
583 
584 /**************************************************************************/
593 
594 
595 /**************************************************************************/
604 
605 
606 
607 /**************************************************************************/
615 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_SetGroupTriggerThreshold(int handle, uint32_t group, uint32_t Tvalue);
616 
617 
618 
619 /**************************************************************************/
627 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_GetGroupTriggerThreshold(int handle, uint32_t group, uint32_t *Tvalue);
628 
629 
630 
631 
632 /**************************************************************************/
640 
641 
642 
643 /**************************************************************************/
651 
652 
653 
654 /**************************************************************************/
664 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_SetChannelZSParams(int handle, uint32_t channel, CAEN_DGTZ_ThresholdWeight_t weight, int32_t threshold, int32_t nsamp);
665 
666 
667 
668 /**************************************************************************/
678 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_GetChannelZSParams(int handle, uint32_t channel, CAEN_DGTZ_ThresholdWeight_t *weight, int32_t *threshold, int32_t *nsamp);
679 
680 
681 
682 /**************************************************************************/
690 
691 
692 
693 /**************************************************************************/
701 
702 
703 
704 /**************************************************************************/
712 
713 
714 /**************************************************************************/
722 
723 /**************************************************************************/
731 
732 
733 
734 /**************************************************************************/
742 
743 
744 
745 /**************************************************************************/
756 
757 
758 
759 /**************************************************************************/
769 
770 
771 
772 /**************************************************************************/
779 
780 /**************************************************************************/
788 
789 /**************************************************************************/
797 
798 /**************************************************************************/
807 
808 /**************************************************************************/
817 
818 
819 /**************************************************************************/
827 
828 
829 /**************************************************************************/
838 
839 
840 /**************************************************************************/
850 
851 
852 
853 /**************************************************************************/
862 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_ReadData(int handle, CAEN_DGTZ_ReadMode_t mode, char *buffer, uint32_t *bufferSize);
863 
864 
865 
866 /**************************************************************************/
875 
876 
877 
878 /**************************************************************************/
888 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_GetNumEvents(int handle, char *buffer, uint32_t buffsize, uint32_t *numEvents);
889 
890 
891 
892 /**************************************************************************/
904 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_GetEventInfo(int handle, char *buffer, uint32_t buffsize, int32_t numEvent, CAEN_DGTZ_EventInfo_t *eventInfo, char **EventPtr);
905 
906 
907 
908 /**************************************************************************/
917 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_DecodeEvent(int handle, char *evtPtr, void **Evt);
918 
919 
920 /**************************************************************************/
929 
930 
931 /**************************************************************************/
942 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_GetDPPEvents(int handle, char *buffer, uint32_t buffsize, void **events, uint32_t *numEventsArray);
943 
944 
945 /**************************************************************************/
958 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_MallocDPPEvents(int handle, void **events, uint32_t *allocatedSize);
959 
960 
961 /**************************************************************************/
970 
971 
972 /**************************************************************************/
984 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_MallocDPPWaveforms(int handle, void **waveforms, uint32_t *allocatedSize);
985 
986 
987 /**************************************************************************/
996 
997 
998 /**************************************************************************/
1007 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_DecodeDPPWaveforms(int handle, void *event, void *waveforms);
1008 
1009 /**************************************************************************/
1019 
1020 /**************************************************************************/
1031 
1032 
1033 /**************************************************************************/
1047 
1048 
1049 /**************************************************************************/
1061 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_SetDPPParameters(int handle, uint32_t channelMask, void* params);
1062 
1063 
1064 /**************************************************************************/
1073 
1074 /**************************************************************************/
1083 
1084 
1085 /**************************************************************************/
1095 
1096 
1097 /**************************************************************************/
1105 
1106 /**************************************************************************/
1117 
1118 /**************************************************************************/
1129 
1130 
1131 
1132 /**************************************************************************/
1143 
1144 
1145 /**************************************************************************/
1156 
1157 
1158 
1159 /**************************************************************************/
1170 
1171 
1172 /**************************************************************************/
1183 
1184 /**************************************************************************/
1192 
1193 /**************************************************************************/
1201 
1202 /**************************************************************************/
1210 
1211 /**************************************************************************/
1220 
1221 /**************************************************************************/
1230 
1231 /**************************************************************************/
1238 
1239 
1240 
1246 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_GetGroupFastTriggerThreshold(int handle, uint32_t group, uint32_t *Tvalue);
1247 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_SetGroupFastTriggerDCOffset(int handle, uint32_t group, uint32_t DCvalue);
1248 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_GetGroupFastTriggerDCOffset(int handle, uint32_t group, uint32_t *DCvalue);
1256 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_DecodeZLEWaveforms(int handle, void *event, void *waveforms);
1258 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_MallocZLEWaveforms(int handle, void **waveforms, uint32_t *allocatedSize);
1260 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_MallocZLEEvents(int handle, void **events, uint32_t *allocatedSize);
1261 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_GetZLEEvents(int handle, char *buffer, uint32_t buffsize, void **events, uint32_t* numEventsArray);
1262 CAEN_DGTZ_ErrorCode CAENDGTZ_API CAEN_DGTZ_SetZLEParameters(int handle, uint32_t channelMask, void* params);
1263 
1264 #ifdef __cplusplus
1265 }
1266 #endif
1267 
1268 #endif