00001 #ifndef _ots_FEOtsUDPFSSRInterfaceConfiguration_h_
00002 #define _ots_FEOtsUDPFSSRInterfaceConfiguration_h_
00003
00004 #include "otsdaq-core/ConfigurationDataFormats/FEInterfaceConfigurationBase.h"
00005 #include <string>
00006
00007 namespace ots
00008 {
00009
00010 class FEOtsUDPFSSRInterfaceConfiguration : public FEInterfaceConfigurationBase
00011 {
00012
00013 public:
00014
00015 FEOtsUDPFSSRInterfaceConfiguration(void);
00016 virtual ~FEOtsUDPFSSRInterfaceConfiguration(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 virtual std::string getIPAddress (std::string interfaceID) const;
00026 virtual 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
00035
00036 private:
00037
00038 enum
00039 {
00040 InterfaceID,
00041 Status,
00042 FirmwareVersion,
00043 IPAddress,
00044 Port,
00045 InterfaceIPAddress,
00046 InterfacePort,
00047 StreamingIPAddress,
00048 StreamingPort,
00049 ClockSelect,
00050 ClockSpeedMHz,
00051 ChannelStatus0,
00052 ChannelStatus1,
00053 ChannelStatus2,
00054 ChannelStatus3,
00055 ChannelStatus4,
00056 ChannelStatus5
00057 };
00058
00059 };
00060 }
00061 #endif