Go to the documentation of this file. 1 #ifndef __ANTARESDAQ__FRAMEPREAMBLE__
2 #define __ANTARESDAQ__FRAMEPREAMBLE__
92 virtual const unsigned char*
getdata()
const {
return NULL; }
111 static const unsigned int Length() {
return 32; }
124 out <<
"frameSize " <<
object.frameSize << endl;
125 out <<
"dataType " <<
object.dataType << endl;
126 out <<
"frameTarget " <<
object.frameTarget << endl;
127 out <<
"frameTime1 " <<
object.frameTime1 << endl;
128 out <<
"frameTime2 " <<
object.frameTime2 << endl;
129 out <<
"frameIndex " <<
object.frameIndex << endl;
130 out <<
"status " <<
object.status << endl;
131 out <<
"nbItems " <<
object.nbItems << endl;
132 out <<
"LCM_ID " <<
object.LCM_ID << endl;
133 out <<
"ARS_ID " <<
object.ARS_ID << endl;
134 out <<
"runNumber " <<
object.runNumber << endl;
unsigned short ARS_ID
ID of originating ARS.
unsigned int runNumber
Run-number as given by the RunControl.
ClassDef(DaqFramePreamble, 2)
const unsigned short ars_id() const
get ARS idendifier
static const bool operator!=(const DaqFramePreamble &first, const DaqFramePreamble &second)
not-equal operator for DAQ frame preamble
const unsigned short numberOfItems() const
get number of items
static const bool operator==(const DaqFramePreamble &first, const DaqFramePreamble &second)
equal operator for DAQ frame preamble
unsigned short frameTarget
Unique code representing the shore station for this frame.
unsigned int frameTime1
Frame 'time stamp' in units of 50ns (MSW)
friend std::ostream & operator<<(std::ostream &out, const DaqFramePreamble &object)
Print ASCII.
unsigned short LCM_ID
ID of originating LCM.
virtual const unsigned char * getdata() const
Return a pointer to the frame data buffer.
unsigned int frameIndex
Number of frames since start of the run.
unsigned short dataType
Data type code (DAQ_xxx)
unsigned int frameTime2
Frame 'time stamp' in units of 50ns (LSW)
virtual ~DaqFramePreamble()
destructor
const unsigned short data_type() const
get data type
virtual const unsigned int getdatalen() const
Return the length of the frame data buffer.
const unsigned short lcm_id() const
get LCM idendifier
unsigned int frameSize
Total length of the frame in 4-byte words.
unsigned short status
Status of frame Xon/Xoff.
static const unsigned int Length()
Return length of an encoded frame preamble in bytes.
unsigned short nbItems
Number of items actually sent in this frame.
DaqFramePreamble()
Construct an empty preamble object.
This object holds the information from the 'preamble' of a data frame.