otsdaq_components  v2_02_00
FEPurdueFSSRInterfaceConfiguration.h
1 #ifndef _ots_FEPurdueFSSRInterfaceConfiguration_h_
2 #define _ots_FEPurdueFSSRInterfaceConfiguration_h_
3 
4 #include "otsdaq-core/ConfigurationDataFormats/FEInterfaceConfigurationBase.h"
5 #include <string>
6 
7 namespace ots
8 {
9 
10 class FEPurdueFSSRInterfaceConfiguration : public FEInterfaceConfigurationBase
11 {
12 
13 public:
14 
17 
18  //Methods
19  void init(ConfigurationManager *configManager);
20 
21  //Getters
22  bool getStatus (std::string interfaceID) const;
23  bool getChannelStatus (std::string interfaceID, unsigned int channel) const;
24  unsigned int getFirmwareVersion (std::string interfaceID) const;
25  std::string getIPAddress (std::string interfaceID) const;
26  unsigned int getPort (std::string interfaceID) const;
27  std::string getInterfaceIPAddress(std::string interfaceID) const;
28  unsigned int getInterfacePort (std::string interfaceID) const;
29  std::string getClockSelect (std::string interfaceID) const;
30  double getClockSpeedMHz (std::string interfaceID) const;
31  std::string getStreamingIPAddress(std::string interfaceID) const;
32  unsigned int getStreamingPort (std::string interfaceID) const;
33 
34 private:
35 
36  enum{InterfaceID,
37  Status,
38  FirmwareVersion,
39  IPAddress,
40  Port,
41  InterfaceIPAddress,
42  InterfacePort,
43  StreamingIPAddress,
44  StreamingPort,
45  ClockSelect,
46  ClockSpeedMHz,
47  ChannelStatus0,
48  ChannelStatus1,
49  ChannelStatus2,
50  ChannelStatus3,
51  ChannelStatus4,
52  ChannelStatus5
53  };
54 
55 };
56 }
57 #endif