McStas Readout Master
0.8.0
Loading...
Searching...
No Matches
readout_structs.h
1
9
10
#ifndef READOUT_STRUCTS_H
11
#define READOUT_STRUCTS_H
12
13
#ifdef WIN32
14
// Export symbols if compile flags "READOUT_SHARED" and "READOUT_EXPORT" are set on Windows.
15
#ifdef READOUT_SHARED
16
#ifdef READOUT_EXPORT
17
#define RL_API __declspec(dllexport)
18
#else
19
#define RL_API __declspec(dllimport)
20
#endif
21
#else
22
// Disable definition if linking statically.
23
#define RL_API
24
#endif
25
#else
26
// Disable definition for non-Win32 systems.
27
#define RL_API
28
#endif
29
30
#include <stdint.h>
31
32
#ifdef __cplusplus
33
extern
"C"
{
34
#endif
35
36
struct
CAEN_readout
{
37
uint8_t channel;
38
uint16_t a;
39
uint16_t b;
40
uint16_t c;
41
uint16_t d;
42
};
43
44
struct
CDT_readout
{
45
uint8_t om;
46
uint8_t cathode;
47
uint8_t anode;
48
};
49
50
struct
VMM3_readout
{
51
uint16_t bc;
52
uint16_t otadc;
53
uint8_t geo;
54
uint8_t tdc;
55
uint8_t vmm;
56
uint8_t channel;
57
};
58
59
struct
BM0_readout
{
60
uint8_t channel;
61
};
62
63
struct
BM2_readout
{
64
uint8_t channel;
65
uint16_t pos_x;
66
uint16_t pos_y;
67
};
68
69
struct
BMI_readout
{
70
uint8_t channel;
71
uint8_t sum;
72
uint32_t adc;
// 24 bit ADC value, but stored in a 32 bit integer for alignment reasons
73
};
74
75
typedef
struct
CAEN_readout
CAEN_readout_t
;
76
typedef
struct
CDT_readout
CDT_readout_t
;
77
typedef
struct
VMM3_readout
VMM3_readout_t
;
78
typedef
struct
BM0_readout
BM0_readout_t
;
79
typedef
struct
BM2_readout
BM2_readout_t
;
80
typedef
struct
BMI_readout
BMI_readout_t
;
81
82
83
#ifdef __cplusplus
84
}
85
#endif
86
87
#endif
BM0_readout
Definition
readout_structs.h:59
BM2_readout
Definition
readout_structs.h:63
BMI_readout
Definition
readout_structs.h:69
CAEN_readout
Definition
readout_structs.h:36
CDT_readout
Definition
readout_structs.h:44
VMM3_readout
Definition
readout_structs.h:50
readout_core
include
readout_structs.h
Generated by
1.9.8