otsdaq_components  v2_02_00
FEOtsUDPFSSRInterfaceConfiguration.h
1 #ifndef _ots_FEOtsUDPFSSRInterfaceConfiguration_h_
2 #define _ots_FEOtsUDPFSSRInterfaceConfiguration_h_
3 
4 #include "otsdaq-core/ConfigurationDataFormats/FEInterfaceConfigurationBase.h"
5 #include <string>
6 
7 namespace ots
8 {
9 
10 class FEOtsUDPFSSRInterfaceConfiguration : 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  virtual std::string getIPAddress (std::string interfaceID) const;
26  virtual 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 
35 
36 private:
37 
38  enum
39  {
40  InterfaceID,
41  Status,
42  FirmwareVersion,
43  IPAddress,
44  Port,
45  InterfaceIPAddress,
46  InterfacePort,
47  StreamingIPAddress,
48  StreamingPort,
49  ClockSelect,
50  ClockSpeedMHz,
51  ChannelStatus0,
52  ChannelStatus1,
53  ChannelStatus2,
54  ChannelStatus3,
55  ChannelStatus4,
56  ChannelStatus5
57  };
58 
59 };
60 }
61 #endif