Attachment 'adcm_df.h'
Download 1 #ifndef ADCM_DF_H
2 #define ADCM_DF_H 1
3
4 // ISO C99
5 #include <inttypes.h>
6 #include <sys/types.h>
7
8 #include "adcm16.h"
9
10 #define STOR_ID_CMAP 0x504D /* 'MP' */
11 #define STOR_ID_EVNT 0x5645 /* 'EV' */
12 #define STOR_ID_CNTR 0x5443 /* 'CT' */
13
14 struct stor_packet_hdr_t {
15 u_int16_t id; // data block ID
16 u_int16_t size; // block size, bytes
17 } __attribute__ ((packed));
18
19 struct stor_ev_hdr_t {
20 u_int8_t np; // number of pulses following
21 u_int8_t reserved1;
22 u_int16_t reserved2;
23 u_int32_t ts; // timestamp, 10 ns step
24 } __attribute__ ((packed));
25
26 struct stor_puls_t {
27 u_int8_t ch;
28 u_int8_t flags;
29 float a;
30 float t;
31 float w;
32 } __attribute__ ((packed));
33
34 struct adcm_cmap_t {
35 u_int32_t n;
36 u_int8_t map[ADC_NCH];
37 };
38
39 struct adcm_counters_t {
40 u_int32_t n;
41 double time;
42 u_int32_t rawhits[ADC_NCH];
43 };
44
45 #endif /* ADCM_DF_H */
46
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.