otsdaq_components  v2_05_02_indev
OtsUDPFirmwareDataGen.h
1 #ifndef _ots_OtsUDPFirmwareDataGen_h_
2 #define _ots_OtsUDPFirmwareDataGen_h_
3 
4 #include <string>
5 
6 #include "otsdaq-components/DAQHardware/OtsUDPFirmwareCore.h"
7 
8 namespace ots
9 {
11 {
12  //===============================================
13  // OtsUDPFirmwareDataGen
14  //
15  // The intent of this class is to be the "Data Gen" project firmware user
16  // functionality. This should handle everything in the user block 0x0 of the address
17  // space.
18  //
19 
20  public:
21  OtsUDPFirmwareDataGen(unsigned int version);
22  virtual ~OtsUDPFirmwareDataGen(void);
23  virtual void init(void);
24 
25  protected:
26  void setNumberOfBurstWords(std::string& buffer, uint64_t numberOfWords);
27  void setBurstWordsRate(std::string& buffer, uint64_t interval);
28 };
29 }
30 
31 #endif