Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
RawDAQData.h File Reference
#include "DAQDataFormats/FunctionBind.h"
#include <iostream>
#include <stdint.h>
#include <stdlib.h>
#include <vector>

Go to the source code of this file.

Classes

class  daqdataformats::RawDAQData
 

Namespaces

 novadaq
 
 novadaq::datalogger
 
 daqdataformats
 Class to hold the data from the FEBs in correct formats.
 
 daqdataformats::rawdaqdataformat
 

Macros

#define DAQDATAFORMATS_VERSIONING_IS_IMPLEMENTED
 Versioning is implemented. More...
 
#define RAWBUFF32   ((uint32_t*)_Buffer)
 
#define RAWBUFF16   ((uint16_t*)_Buffer)
 
#define GENERATE_FUNCTION_IS_NOT_ALLOWED   functionIsNotAllowed(__FUNCTION__)
 calling functionIsNotAllowed More...
 
#define EXECUTE_ON_DEBUG(x)   static_assert(true, "Null statement")
 Debugging macros. More...
 
#define PRINT_ON_DEBUG(x)   static_assert(true, "Null statement")
 
#define COUT(xx)   std::cout<<__PRETTY_FUNCTION__<<xx; std::cout<<"\n";
 This is for hard debugging. More...
 

Typedefs

typedef int32_t daqdataformats::version_t
 

Enumerations

enum  daqdataformats::readDataStatus { daqdataformats::rds_error = -1, daqdataformats::rds_incomplete, daqdataformats::rds_complete }
 

Functions

std::ostream & daqdataformats::operator<< (std::ostream &os, const daqdataformats::RawDAQData &dataformat)
 operator << so that one can put print it into an output stream directly More...
 
uint32_t daqdataformats::calculateShiftFromAGivenMask (const uint32_t mask)
 

Variables

static const version_t daqdataformats::rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION = -1
 

Macro Definition Documentation

#define COUT (   xx)    std::cout<<__PRETTY_FUNCTION__<<xx; std::cout<<"\n";

This is for hard debugging.

Definition at line 40 of file RawDAQData.h.

#define DAQDATAFORMATS_VERSIONING_IS_IMPLEMENTED

Versioning is implemented.

Definition at line 11 of file RawDAQData.h.

#define EXECUTE_ON_DEBUG (   x)    static_assert(true, "Null statement")
#define GENERATE_FUNCTION_IS_NOT_ALLOWED   functionIsNotAllowed(__FUNCTION__)
#define PRINT_ON_DEBUG (   x)    static_assert(true, "Null statement")

Definition at line 35 of file RawDAQData.h.

Referenced by daqdataformats::VERSION_NAMESPACE::RawSummaryDCMData::addDataPoints(), daqdataformats::VERSION_NAMESPACE::RawDataBlock::addMicroBlock1(), daqdataformats::VERSION_NAMESPACE::RawDataBlock::addMicroBlock2(), daqdataformats::RawDAQData::clear(), daqdataformats::RawMilliSlice::close(), daqdataformats::RawDAQData::copy(), daqdataformats::RawDAQData::defaultConstructorFloatingSize(), daqdataformats::VERSION_NAMESPACE::RawEvent::init(), daqdataformats::VERSION_NAMESPACE::RawMicroBlockHeader::init(), daqdataformats::VERSION_NAMESPACE::RawConfigurationName::init(), daqdataformats::VERSION_NAMESPACE::RawTrigger::init(), daqdataformats::RawDAQData::lastOperationsInDeepCopy(), daqdataformats::VERSION_NAMESPACE::RawTriggerRange::print(), daqdataformats::VERSION_NAMESPACE::RawSummaryDroppedMicroblock::print(), daqdataformats::VERSION_NAMESPACE::RawTrigger::print(), daqdataformats::VERSION_NAMESPACE::RawTriggerMask::print(), daqdataformats::VERSION_NAMESPACE::RawTriggerTime::print(), daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::print(), daqdataformats::RawDataBlock::RawDataBlock(), daqdataformats::RawMicroBlockHeader::RawMicroBlockHeader(), daqdataformats::RawSummaryDCMDataHeader::RawSummaryDCMDataHeader(), daqdataformats::RawTrigger::RawTrigger(), daqdataformats::VERSION_NAMESPACE::RawEvent::readData(), daqdataformats::VERSION_NAMESPACE::RawConfigurationName::readData(), daqdataformats::RawDAQData::readDataGeneral(), daqdataformats::RawDAQData::readDataUnknownVersion(), daqdataformats::RawDAQData::reset(), daqdataformats::RawDAQData::resetBufferSource(), daqdataformats::VERSION_NAMESPACE::RawSummaryDCMData::setBufferSource(), daqdataformats::VERSION_NAMESPACE::RawMicroBlock::setBufferSource(), daqdataformats::VERSION_NAMESPACE::RawDataBlock::setBufferSource(), daqdataformats::VERSION_NAMESPACE::RawConfigurationBlock::setBufferSource(), daqdataformats::VERSION_NAMESPACE::RawEvent::setBufferSource(), daqdataformats::VERSION_NAMESPACE::RawTrigger::setBufferSource(), daqdataformats::RawDAQData::setBufferSource(), daqdataformats::RawDAQData::setBufferSourceGeneral(), and daqdataformats::VERSION_NAMESPACE::RawEvent::setTrigger2().

#define RAWBUFF16   ((uint16_t*)_Buffer)

Definition at line 17 of file RawDAQData.h.

#define RAWBUFF32   ((uint32_t*)_Buffer)

Define a macros to make accessing the raw buffer easier All DAQDataFormats use this macro, so we'll just have one definition here

Definition at line 16 of file RawDAQData.h.

Referenced by daqdataformats::RawDAQData::addCheckSum(), daqdataformats::RawDAQData::clear(), daqdataformats::VERSION_NAMESPACE::RawEvent::close(), daqdataformats::RawMilliSlice::close(), daqdataformats::RawMilliSlice::getCRC(), daqdataformats::VERSION_NAMESPACE::RawSummaryDCMData::getDataPoint(), daqdataformats::VERSION_NAMESPACE::RawDataBlock::getDCMData(), daqdataformats::VERSION_NAMESPACE::RawDataBlock::getDroppedMicroblock(), daqdataformats::RawTimingMarker::getHighWord(), daqdataformats::RawTimingMarker::getLowWord(), daqdataformats::RawMilliSlice::getMilliSliceIndex(), daqdataformats::RawMilliSliceHeader::getMode(), daqdataformats::RawMilliSliceIndex::getOffset(), daqdataformats::RawMilliSliceIndex::getTime(), daqdataformats::VERSION_NAMESPACE::RawNanoSlice::getWordPointer(), daqdataformats::VERSION_NAMESPACE::RawConfigurationBlock::init(), daqdataformats::VERSION_NAMESPACE::RawConfigurationName::init(), daqdataformats::VERSION_NAMESPACE::RawMicroSliceHeader::initSoft(), daqdataformats::RawDAQData::printWord(), daqdataformats::VERSION_NAMESPACE::RawEvent::readData(), daqdataformats::RawDAQData::readDataGeneral(), daqdataformats::VERSION_NAMESPACE::RawDataBlock::readDataUnknownVersion(), daqdataformats::VERSION_NAMESPACE::RawDataBlock::setBufferSource(), daqdataformats::VERSION_NAMESPACE::RawTrigger::setBufferSource(), daqdataformats::RawMicroSlice::setBufferSource(), daqdataformats::RawMilliSlice::setFloatingMicroSlice(), daqdataformats::RawMicroSlice::setFloatingNanoSlice(), daqdataformats::RawTimingMarker::setHighWord(), daqdataformats::RawTimingMarker::setLowWord(), daqdataformats::RawMilliSliceHeader::setMode(), daqdataformats::RawMilliSliceIndex::setOffset(), daqdataformats::RawMilliSliceIndex::setTime(), daqdataformats::VERSION_NAMESPACE::RawEvent::setTrigger2(), daqdataformats::VERSION_NAMESPACE::RawMicroSliceHeader::setVersion(), daqdataformats::VERSION_NAMESPACE::RawEvent::tryToSetTail(), daqdataformats::VERSION_NAMESPACE::RawEvent::tryToSetTrigger(), and daqdataformats::RawDAQData::writeData().