00001 #ifndef _ots_FEOtsUDPTemplateInterface_h_
00002 #define _ots_FEOtsUDPTemplateInterface_h_
00003
00004 #include "otsdaq-core/FECore/FEVInterface.h"
00005 #include "otsdaq-components/DAQHardware/OtsUDPHardware.h"
00006 #include "otsdaq-components/DAQHardware/OtsUDPFirmwareDataGen.h"
00007
00008 #include <string>
00009
00010 namespace ots
00011 {
00012
00013 class FEOtsUDPTemplateInterface : public FEVInterface, public OtsUDPHardware, public OtsUDPFirmwareDataGen
00014 {
00015
00016 public:
00017
00018 FEOtsUDPTemplateInterface (const std::string& interfaceUID, const ConfigurationTree& theXDAQContextConfigTree, const std::string& interfaceConfigurationPath);
00019 virtual ~FEOtsUDPTemplateInterface(void);
00020
00021 void configure (void) override;
00022 void halt (void) override;
00023 void pause (void) override;
00024 void resume (void) override;
00025 void start (std::string runNumber) override;
00026 void stop (void) override;
00027 bool running (void) override;
00028
00029 virtual int universalRead (char* address, char* readValue) override;
00030 virtual void universalWrite (char* address, char* writeValue) override;
00031
00032 private:
00033
00034 };
00035
00036 }
00037
00038 #endif