View of a 4-word (4 x uint32_t) stream header; the stream's uint16_t samples follow it in memory, as read by RawStream and ThrStream validate().
More...
#include <Stream.hh>
|
| | StreamHeader () |
| | Default constructor; the words are left uninitialized.
|
| |
| unsigned | num_samples () const |
| | Return word 0 bits 28:0.
|
| |
| unsigned | stream_id () const |
| | Return word 1 bits 31:24.
|
| |
| unsigned | samples () const |
| | Return num_samples() (word 0 bits 28:0).
|
| |
| bool | out_of_range () const |
| | Return word 0 bit 29; the trailing comment says sample upper bits were dropped.
|
| |
| bool | unlocked () const |
| | Return word 0 bit 30; the trailing comment says the data serial link was unlocked.
|
| |
| bool | overflow () const |
| | Return word 0 bit 31; the trailing comment says the memory buffer overflowed.
|
| |
| unsigned | strmtype () const |
| | Return word 1 bits 31:24 (the same bits as stream_id()); the trailing comment calls it the stream type (raw, thr, ...).
|
| |
| unsigned | boffs () const |
| | Return word 1 bits 7:0; the trailing comment calls it padding at the start.
|
| |
| unsigned | eoffs () const |
| | Return word 1 bits 15:8; the trailing comment calls it padding at the end.
|
| |
| unsigned | buffer () const |
| | Return word 1 bits 31:16 (overlapping stream_id()); the comments say it is one of 16 front-end buffers and only 4 bits are needed.
|
| |
| unsigned | toffs () const |
| | Return word 2 bits 15:0; the trailing comment calls it the phase between the sample clock and the timing clock.
|
| |
| unsigned | l1tag () const |
| | Return word 2 bits 20:16; the trailing comment calls it the trigger tag word.
|
| |
| unsigned | baddr () const |
| | Return word 3 bits 15:0; the trailing comment calls it the begin address in the circular buffer.
|
| |
| unsigned | eaddr () const |
| | Return word 3 bits 31:16; the trailing comment calls it the end address in the circular buffer.
|
| |
| void | dump () const |
| | Print the four words in hex and the decoded samples(), boffs(), eoffs(), buffer(), toffs(), baddr() and eaddr() to stdout.
|
| |
View of a 4-word (4 x uint32_t) stream header; the stream's uint16_t samples follow it in memory, as read by RawStream and ThrStream validate().
The accessors decode bit fields of the four words. The comment above says it is used by class Channel.
◆ StreamHeader()
| Pds::HSD::StreamHeader::StreamHeader |
( |
| ) |
|
|
inline |
Default constructor; the words are left uninitialized.
◆ baddr()
| unsigned Pds::HSD::StreamHeader::baddr |
( |
| ) |
const |
|
inline |
Return word 3 bits 15:0; the trailing comment calls it the begin address in the circular buffer.
◆ boffs()
| unsigned Pds::HSD::StreamHeader::boffs |
( |
| ) |
const |
|
inline |
Return word 1 bits 7:0; the trailing comment calls it padding at the start.
The validators start reading samples at this index.
◆ buffer()
| unsigned Pds::HSD::StreamHeader::buffer |
( |
| ) |
const |
|
inline |
Return word 1 bits 31:16 (overlapping stream_id()); the comments say it is one of 16 front-end buffers and only 4 bits are needed.
◆ dump()
| void Pds::HSD::StreamHeader::dump |
( |
| ) |
const |
|
inline |
◆ eaddr()
| unsigned Pds::HSD::StreamHeader::eaddr |
( |
| ) |
const |
|
inline |
Return word 3 bits 31:16; the trailing comment calls it the end address in the circular buffer.
◆ eoffs()
| unsigned Pds::HSD::StreamHeader::eoffs |
( |
| ) |
const |
|
inline |
Return word 1 bits 15:8; the trailing comment calls it padding at the end.
◆ l1tag()
| unsigned Pds::HSD::StreamHeader::l1tag |
( |
| ) |
const |
|
inline |
Return word 2 bits 20:16; the trailing comment calls it the trigger tag word.
◆ num_samples()
| unsigned Pds::HSD::StreamHeader::num_samples |
( |
| ) |
const |
|
inline |
◆ out_of_range()
| bool Pds::HSD::StreamHeader::out_of_range |
( |
| ) |
const |
|
inline |
Return word 0 bit 29; the trailing comment says sample upper bits were dropped.
◆ overflow()
| bool Pds::HSD::StreamHeader::overflow |
( |
| ) |
const |
|
inline |
Return word 0 bit 31; the trailing comment says the memory buffer overflowed.
◆ samples()
| unsigned Pds::HSD::StreamHeader::samples |
( |
| ) |
const |
|
inline |
◆ stream_id()
| unsigned Pds::HSD::StreamHeader::stream_id |
( |
| ) |
const |
|
inline |
Return word 1 bits 31:24.
◆ strmtype()
| unsigned Pds::HSD::StreamHeader::strmtype |
( |
| ) |
const |
|
inline |
Return word 1 bits 31:24 (the same bits as stream_id()); the trailing comment calls it the stream type (raw, thr, ...).
◆ toffs()
| unsigned Pds::HSD::StreamHeader::toffs |
( |
| ) |
const |
|
inline |
Return word 2 bits 15:0; the trailing comment calls it the phase between the sample clock and the timing clock.
◆ unlocked()
| bool Pds::HSD::StreamHeader::unlocked |
( |
| ) |
const |
|
inline |
Return word 0 bit 30; the trailing comment says the data serial link was unlocked.
The documentation for this class was generated from the following file: