-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfaV3Config.h
More file actions
81 lines (61 loc) · 1.45 KB
/
faV3Config.h
File metadata and controls
81 lines (61 loc) · 1.45 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#pragma once
/****************************************************************************
*
* faV3Config.h - configuration library header file for faV3
*
*/
#include <stdint.h>
#define MAX_FAV3_CH 16
/** FADC250 configuration parameters **/
typedef struct {
uint32_t proc_version;
uint32_t chDisMask;
int32_t mode;
uint32_t winOffset;
uint32_t winWidth;
uint32_t nsb;
uint32_t nsa;
uint32_t npeak;
uint32_t nsat;
uint32_t nped;
uint32_t max_ped;
uint16_t ptw_fallback_mask;
uint32_t trig_thr;
uint32_t trig_nsa;
uint32_t trig_nsat;
uint32_t trigMask;
uint32_t trigWidth;
uint32_t trigMinTOT;
uint32_t trigMinMult;
uint32_t thrIgnoreMask;
uint32_t invertMask;
uint32_t playbackDisableMask;
uint32_t sparsification;
uint32_t accumulatorMask;
uint32_t trigModeMask;
float pedestal[MAX_FAV3_CH];
uint32_t thr[MAX_FAV3_CH];
uint32_t dac[MAX_FAV3_CH];
float gain[MAX_FAV3_CH];
uint32_t delay[MAX_FAV3_CH];
int32_t data_format;
int32_t suppress_trig_time;
int32_t insert_adc_params;
int32_t compression;
int32_t vxsReadout;
} FAV3_CONF;
/* functions */
#ifdef __cplusplus
extern "C" {
#endif
int faV3Config(char *fname);
void faV3InitGlobals();
int faV3ReadConfigFile(char *filename);
int faV3DownloadAll();
int32_t faV3GetModulesConfig();
int32_t faV3ConfigToString(char *string, int32_t length);
int faV3UploadAll(char *string, int length);
int faV3UploadAllPrint();
#ifdef __cplusplus
}
#endif