1 #ifndef _ots_PurdueFirmwareCore_h_
2 #define _ots_PurdueFirmwareCore_h_
4 #include "otsdaq-components/DAQHardware/FirmwareSequence.h"
5 #include "otsdaq-components/DAQHardware/FrontEndFirmwareBase.h"
17 virtual void init(
void);
19 std::string read(
char* address);
20 std::string write(
char* address,
char* data);
22 virtual void write(std::string& buffer,
25 bool clearBuffer =
true);
26 virtual void waitSet(std::string& buffer,
29 uint32_t timeout = 255,
30 bool clearBuffer =
true);
31 virtual void waitClear(std::string& buffer,
34 uint32_t timeout = 255,
35 bool clearBuffer =
true);
36 virtual void read(std::string& buffer, uint32_t address,
bool clearBuffer =
true);
38 virtual void setDataDestination(std::string& buffer,
39 const std::string& ip,
41 bool clearBuffer =
true);
49 using FrontEndFirmwareBase::read;
50 using FrontEndFirmwareBase::write;
52 virtual unsigned int getNumberOfBufferedCommands(std::string& buffer);
53 virtual std::string compareSendAndReceive(
const std::string& sentBuffer,
54 std::string& acknowledgment);
55 virtual uint32_t createRegisterFromValue(std::string& readBuffer,
56 std::string& receivedValue);