AlcapDAQ
1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
CAEN
CAENDigitizer
CAENDigitizer_2.3.2
samples
x742_DataCorrection
X742DecodeRoutines.h
Go to the documentation of this file.
1
#include <
CAENDigitizer.h
>
2
3
#define EVENT_HEADER_SIZE 0x10
4
#define X742_MAX_GROUPS 0x04
5
#define MAX_X742_CHANNEL_SIZE 0x09
6
#define X742_FIXED_SIZE 0x400
7
8
/*****************************************************************************
9
* GetNumEvents(char *buffer, uint32_t buffsize, uint32_t *numEvents)
10
* Gets current number of event stored in the acquisition buffer
11
*
12
* [IN] buffer : Address of the acquisition buffer
13
* [IN] bufferSize : Size of the data stored in the acquisition buffer
14
* [OUT] numEvents : Number of events stored in the acquisition buffer
15
* : return 0 = Success;
16
******************************************************************************/
17
int32_t
GetNumEvents
(
char
*buffer, uint32_t buffsize, uint32_t *numEvents);
18
19
/*****************************************************************************
20
* GetEventPtr(char *buffer, uint32_t buffsize, int32_t numEvent, char **EventPtr)
21
* Retrieves the event pointer of a specified event in the acquisition buffer
22
*
23
* [IN] buffer : Address of the acquisition buffer
24
* [IN] bufferSize : Acquisition buffer size (in samples)
25
* [IN] numEvents : Number of events stored in the acquisition buffer
26
* [OUT] EventPtr : Pointer to the requested event in the acquisition buffer
27
* : return 0 = Success;
28
******************************************************************************/
29
int32_t
GetEventPtr
(
char
*buffer, uint32_t buffsize, int32_t numEvent,
char
**EventPtr);
30
31
/******************************************************************************
32
* X742_DecodeEvent(char *evtPtr, void **Evt)
33
* Decodes a specified event stored in the acquisition buffer writing data in Evt memory
34
* Once used the Evt memory MUST be deallocated by the caller!
35
*
36
* [IN] EventPtr : pointer to the requested event in the acquisition buffer (MUST BE NULL)
37
* [OUT] Evt : event structure with the requested event data
38
* : return 0 = Success;
39
******************************************************************************/
40
int32_t
X742_DecodeEvent
(
char
*evtPtr,
void
**Evt);
Generated by
1.8.4