Frelon.h 2.05 KB
Newer Older
1
2
3
4
5
6
#ifndef FRELON_H
#define FRELON_H

#include "EspiaSerialLine.h"
#include <string>
#include <map>
ahoms's avatar
ahoms committed
7
#include <vector>
8
9
10
11

namespace lima
{

12
namespace Frelon
13
14
{

15
enum Reg {
ahoms's avatar
ahoms committed
16
	NbFrames,	ExpTime,	ShutCloseTime,	LatencyTime,
17
18
19
20
21
22
23
24
25
	RoiLineBegin,	RoiLineWidth,	RoiPixelBegin,	RoiPixelWidth,
	ChanMode,	TimeUnit,	RoiEnable,	RoiFast, 
	AntiBloom,	BinVert,	BinHorz,	ConfigHD,
	RoiKinetic,	ShutEnable,	HardTrigDisable,
	PixelFreq,	LineFreq,	Flip,		IntCalib,
	DisplayImage,	AdcFloatDiode,	AdcSignal,	
	DarkPixelCalib,	DarkPixelMode,	ChanControl,	Mire,
	AoiLineBegin,	AoiLineWidth,	AoiPixelBegin,	AoiPixelWidth,
	AoiImageHeight,	AoiImageWidth,	ChanOnImage,	ChanOnCcd,
ahoms's avatar
ahoms committed
26
	Version,	CompSerNb,	Warn,
27
};
28

ahoms's avatar
ahoms committed
29
30
31
typedef std::map<Reg, std::string> RegStrMapType;
extern RegStrMapType RegStrMap;

32

33
34
35
enum Cmd {
	Reset,		Start,		Stop,		Save,
};
36

ahoms's avatar
ahoms committed
37
38
39
typedef std::map<Cmd, std::string> CmdStrMapType;
extern CmdStrMapType CmdStrMap;

40

41
42
43
enum MultiLineCmd {
	Help,		Config,		Dac,		Volt,
	Aoi,
44
45
};

ahoms's avatar
ahoms committed
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
82
83
84
85
typedef std::map<MultiLineCmd, std::string> MultiLineCmdStrMapType;
extern MultiLineCmdStrMapType MultiLineCmdStrMap;


enum FrameTransferMode {
	FFM = 0, FTM = 1,
};

enum InputChan {
	Chan1    = (1 << 0),
	Chan2    = (1 << 1),
	Chan3    = (1 << 2),
	Chan4    = (1 << 3),
	Chan13   = Chan1  | Chan3,
	Chan24   = Chan2  | Chan4,
	Chan12   = Chan1  | Chan2,
	Chan34   = Chan3  | Chan4,
	Chan1234 = Chan12 | Chan34,
};

typedef std::pair<int, int> ChanRange;
typedef std::map<FrameTransferMode, ChanRange> FTMChanRangeMapType;
extern FTMChanRangeMapType FTMChanRangeMap;

typedef std::vector<InputChan> InputChanList;
typedef std::map<FrameTransferMode, InputChanList> FTMInputChanListMapType;
extern FTMInputChanListMapType FTMInputChanListMap;


enum SerNbParam {
	SerNb = 0x00ff,
	F4M   = 0x2000,
	F2k16 = 0x4000,
	Taper = 0x8000,
};

enum RoiMode {
	None, Slow, Fast, Kinetic,
};

86
87
88
89
90
91
92
93
enum TimeUnitFactor {
	Milliseconds, Microseconds,
};

typedef std::map<TimeUnitFactor, double> TimeUnitFactorMapType;
extern TimeUnitFactorMapType TimeUnitFactorMap;


ahoms's avatar
ahoms committed
94
95
extern const FrameDim MaxFrameDim;

96

97

98
99
} // namespace Frelon

100
101
102
} // namespace lima

#endif // FRELON_H