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