1 #ifndef _ots_FrontEndFirmwareBase_h_
2 #define _ots_FrontEndFirmwareBase_h_
7 #include "otsdaq/Macros/CoutMacros.h"
8 #include "otsdaq/MessageFacility/MessageFacility.h"
20 virtual void init(
void) { ; }
22 const unsigned int getVersion() {
return version_; }
29 virtual std::string read(
char* address)
32 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
35 virtual void read(std::string& buffer,
char* address,
bool clearBuffer =
true)
38 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
41 virtual void read(std::string& buffer, uint64_t address,
bool clearBuffer =
true)
44 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
47 virtual void read(std::string& buffer, uint32_t address,
bool clearBuffer =
true)
50 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
54 virtual std::string write(
char* address,
char* data)
57 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
60 virtual void write(std::string& buffer,
63 bool clearBuffer =
true)
66 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
70 virtual void setDataDestination(std::string& buffer,
71 const std::string& ip,
73 bool clearBuffer =
true)
76 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
79 virtual void write(std::string& buffer,
82 bool clearBuffer =
true)
85 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
88 virtual void write(std::string& buffer,
91 bool clearBuffer =
true)
94 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
97 virtual void waitSet(std::string& buffer,
100 uint32_t timeout = 255,
101 bool clearBuffer =
true)
104 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
107 virtual void waitClear(std::string& buffer,
110 uint32_t timeout = 255,
111 bool clearBuffer =
true)
114 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
117 virtual unsigned int getNumberOfBufferedCommands(std::string& buffer)
120 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
126 virtual uint32_t createRegisterFromValue(std::string& readBuffer,
127 std::string& receivedValue)
130 __THROW__(ss.str() +
"Illegal call to undefined base class member function");
183 const unsigned int version_;