-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsettings.h
38 lines (29 loc) · 850 Bytes
/
settings.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
// settings.h
#ifndef SETTINGS_H
#define SETTINGS_H
#include <stdio.h>
#include "config.h"
#define NUMSETTING 3
class CSettings
{
FILE *f;
bool read_int(int &value, int min, int max);
bool read_string(char string[], int size);
public:
bool read(const char filename[]);
// --- data --------------------------------------------------------------
char port_tb[20]; // default USB serial number testboard
char path[256]; // command path
int port_prober; // prober serial port nr (-1 = no prober)
// int tct_wbc; // tct - wbc offset
int sensor; // sensor mounted
int clock; // clock frequency im MHz
int errorRep; // # test rep if defect chip
int l1_bl_shift; // level 1 - black level correction
int vcomp;
int vhlddel;
int vthr;
int caldel;
int vcal;
};
#endif