otsdaq_components
v2_04_01
Return to top level
Main Page
Classes
Files
File List
PSI46DigFirmware.h
1
//#ifndef _ots_PSI46DigFirmware_h_
2
//#define _ots_PSI46DigFirmware_h_
3
//
4
//#include "otsdaq-components/DAQHardware/FrontEndFirmwareBase.h"
5
//#include "otsdaq-components/DAQHardware/PurdueFirmwareCore.h"
6
//
7
//#include <string>
8
//
9
// namespace ots
10
//{
11
//
12
// class PSI46DigFirmware : public FrontEndFirmwareBase/*, public PurdueFirmwareCore*/
13
//{
14
//
15
// public:
16
// PSI46DigFirmware (unsigned int version,std::string type);
17
// virtual ~PSI46DigFirmware(void);
18
// int init(void);
19
// //FEW specific methods
20
// std::string configureClocks(std::string source, double frequency);
21
// std::string resetDetector (int channel=-1);
22
// std::string enableTrigger (void);
23
//
24
// void makeDACSequence (FirmwareSequence<uint64_t>& sequence, unsigned
25
// int channel, const ROCStream& rocStream); void makeMaskSequence
26
// (FirmwareSequence<uint64_t>& sequence, unsigned int channel, const ROCStream&
27
// rocStream); void makeDACSequence (FirmwareSequence<uint32_t>& sequence,
28
// unsigned int channel, const ROCStream& rocStream); void makeDACBuffer
29
// (std::string& buffer, unsigned int channel, const ROCStream& rocStream); void
30
// makeDACBuffer (std::vector<std::string>& buffer, unsigned int
31
// channel, const ROCStream& rocStream); void makeMaskSequence
32
// (FirmwareSequence<uint32_t>& sequence, unsigned int channel, const ROCStream&
33
// rocStream); void makeMaskBuffer (std::string& buffer, unsigned int channel, const
34
// ROCStream& rocStream); void setFrequencyFromClockState (std::string&
35
// buffer, double frequency); bool isClockStateExternal (void);
36
//
37
// //FER specific methods
38
// std::string resetBCO (void);
39
// std::string startStream (bool channel0, bool channel1, bool channel2, bool
40
// channel3, bool channel4, bool channel5); std::string stopStream (void);
41
//
42
// protected:
43
// FrontEndFirmwareBase* protocolInstance_;
44
// void makeMaskSequence(FirmwareSequence<uint64_t>& sequence, unsigned int channel,
45
// const ROCStream& rocStream, const std::string& registerName); void
46
// makeMaskSequence(FirmwareSequence<uint32_t>& sequence, unsigned int channel, const
47
// ROCStream& rocStream, const std::string& registerName); void makeMaskBuffer
48
// (std::string& buffer, unsigned int channel, const ROCStream& rocStream, const
49
// std::string& registerName);
50
//
51
// void setCSRRegister (uint32_t total);
52
//
53
// uint32_t stripCSRRegisterValue_;
54
// //Set values for register STRIP_CSR (Strip Control Register)
55
// void setPacketSizeStripCSR (uint32_t size);
56
// void enableChannelsStripCSR (bool channel0, bool channel1, bool channel2,
57
// bool channel3, bool channel4, bool channel5); void
58
// setExternalBCOClockSourceStripCSR(std::string clockSource); void setHaltStripCSR
59
// (bool set); void enableBCOStripCSR (bool enable);
60
// void flushBuffersStripCSR (void);
61
// void resetTriggerCounterStripCSR (std::string& buffer);
62
// void resetBCOCounterStripCSR (void);
63
// void enableTriggerStripCSR (bool enable);
64
// void sendTriggerDataStripCSR (bool send);
65
// void sendTriggerNumberStripCSR (bool send);
66
// void sendBCOStripCSR (bool send);
67
// void enableStreamStripCSR (bool enable);
68
// void resetDCMStripCSR (bool clear);
69
// uint32_t waitDCMResetStripCSR (void);
70
// std::string readCSRRegister (void);
71
//
72
// uint32_t stripResetRegisterValue_;
73
// //Set values for register STRIP_RESET (Strip Reset)
74
// void resetStripResetRegisterValue(void)
75
// {
76
// stripResetRegisterValue_ = 0;
77
// }
78
// void resetDAC (void);
79
// void resetLink (bool channel0, bool channel1, bool channel2, bool
80
// channel3, bool channel4, bool channel5); void clearErrors (bool
81
// channel0, bool channel1, bool channel2, bool channel3, bool channel4, bool
82
// channel5); void clearFIFO (bool channel0, bool channel1, bool
83
// channel2, bool channel3, bool channel4, bool channel5); void resetChip
84
// (bool channel0, bool channel1, bool channel2, bool channel3, bool channel4, bool
85
// channel5);
86
//
87
// uint32_t stripBCODCMRegisterValue_;
88
// void setFrequencyRatio (std::string& buffer, int numerator, int
89
// denominator);
90
//
91
// void configureStripTriggerUnbiased (std::string& buffer);
92
// void configureTriggerInputs (std::string& buffer);
93
//
94
// uint32_t stripTriggerCSRRegisterValue_;
95
// //Registers setters
96
// void BCOOffset(uint32_t offset);
97
// void selectSpyFIFO(uint32_t input);
98
// void halt(bool halt);
99
//
100
//};
101
//
102
//}
103
//
104
//#endif
105
//
106
//
107
//
108
//
109
//
src
otsdaq-components
DAQHardware
PSI46DigFirmware.h
Generated on Fri Jun 28 2019 14:53:17 for otsdaq_components by
1.8.5