-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFERS_fileheader.h
executable file
·51 lines (44 loc) · 1.31 KB
/
FERS_fileheader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/******************************************************************************
This software is Copyright by the Board of Trustees of Michigan
State University (c) Copyright 2023.
You may use this software under the terms of the GNU public license
(GPL). The terms of this license are described at:
http://www.gnu.org/licenses/gpl.txt
Authors:
Genie Jhang <[email protected]>
Facility for Rare Isotope Beams
Michigan State University
East Lansing, MI 48824-1321
******************************************************************************/
#ifndef _FERS_FILEHEADER_H_
#define _FERS_FILEHEADER_H_
#ifdef FM320
typedef struct __attribute__((__packed__)) {
uint8_t dataformat_major;
uint8_t dataformat_minor;
uint8_t software_major;
uint8_t software_minor;
uint8_t software_patch;
uint16_t boardtype;
uint16_t runnumber;
uint8_t acqmode;
uint16_t energyNCH;
uint8_t timeunit;
float timeconversion;
uint64_t startacq_ms;
} FileHeader_t;
#elif FM310
typedef struct __attribute__((__packed__)) {
uint8_t dataformat_major;
uint8_t dataformat_minor;
uint8_t software_major;
uint8_t software_minor;
uint8_t software_patch;
uint8_t acqmode;
uint16_t energyNCH;
uint8_t timeunit;
float timeconversion;
uint64_t startacq_ms;
} FileHeader_t;
#endif
#endif