otsdaq_components  v2_05_02_indev
OtsUDPFirmwareDataGen.cc
1 #include "otsdaq-components/DAQHardware/OtsUDPFirmwareDataGen.h"
2 #include "otsdaq/Macros/CoutMacros.h"
3 #include "otsdaq/MessageFacility/MessageFacility.h"
4 
5 using namespace ots;
6 
7 //==============================================================================
8 OtsUDPFirmwareDataGen::OtsUDPFirmwareDataGen(unsigned int version)
9  : OtsUDPFirmwareCore(version)
10 {
11 }
12 
13 //==============================================================================
14 OtsUDPFirmwareDataGen::~OtsUDPFirmwareDataGen(void) {}
15 
16 //==============================================================================
17 void OtsUDPFirmwareDataGen::init(void) {}
18 
19 //==============================================================================
20 void OtsUDPFirmwareDataGen::setNumberOfBurstWords(std::string& buffer,
21  uint64_t numberOfWords)
22 {
23  __COUT__ << std::endl;
24  OtsUDPFirmwareCore::writeAdvanced(buffer, 0x1001, numberOfWords);
25 }
26 
27 //==============================================================================
28 void OtsUDPFirmwareDataGen::setBurstWordsRate(std::string& buffer, uint64_t interval)
29 {
30  __COUT__ << std::endl;
31  OtsUDPFirmwareCore::writeAdvanced(buffer, 0x1002, interval);
32 }