00001 #ifndef _ots_FENIMPlusInterfaceConfiguration_h_
00002 #define _ots_FENIMPlusInterfaceConfiguration_h_
00003
00004 #include "otsdaq-core/ConfigurationDataFormats/FEInterfaceConfigurationBase.h"
00005 #include <string>
00006
00007 namespace ots
00008 {
00009
00010 class FENIMPlusInterfaceConfiguration : public FEInterfaceConfigurationBase
00011 {
00012
00013 public:
00014
00015 FENIMPlusInterfaceConfiguration(void);
00016 virtual ~FENIMPlusInterfaceConfiguration(void);
00017
00018
00019 void init(ConfigurationManager *configManager);
00020
00021
00022 bool getStatus (std::string interfaceID) const;
00023 bool getChannelStatus (std::string interfaceID, unsigned int channel) const;
00024 unsigned int getFirmwareVersion (std::string interfaceID) const;
00025 std::string getIPAddress (std::string interfaceID) const;
00026 unsigned int getPort (std::string interfaceID) const;
00027 std::string getInterfaceIPAddress(std::string interfaceID) const;
00028 unsigned int getInterfacePort (std::string interfaceID) const;
00029 std::string getClockSelect (std::string interfaceID) const;
00030 double getClockSpeedMHz (std::string interfaceID) const;
00031 std::string getStreamingIPAddress(std::string interfaceID) const;
00032 unsigned int getStreamingPort (std::string interfaceID) const;
00033
00034 private:
00035
00036 enum
00037 {
00038 InterfaceID,
00039 Status,
00040 FirmwareVersion,
00041 IPAddress,
00042 Port,
00043 InterfaceIPAddress,
00044 InterfacePort,
00045 StreamingIPAddress,
00046 StreamingPort,
00047 ClockSelect,
00048 ClockSpeedMHz,
00049 ChannelStatus0,
00050 ChannelStatus1,
00051 ChannelStatus2,
00052 ChannelStatus3,
00053 ChannelStatus4,
00054 ChannelStatus5
00055 };
00056
00057 };
00058 }
00059 #endif