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