![]() |
Project
|
Class for raw payload excluding raw data headers from one or multiple DMA pages. More...
#include <RawPayload.h>
Public Member Functions | |
RawPayload ()=default | |
Constructor. | |
RawPayload (const gsl::span< const uint32_t > payloadwords, int numpages) | |
Constructor. | |
~RawPayload ()=default | |
Destructor. | |
void | setNumberOfPages (int numpages) |
Set the number of pages contributing to the current payload. | |
void | appendPayloadWords (const gsl::span< const uint32_t > payloadwords) |
Append many words to the current payload (usually of a given DMA page) | |
void | appendPayloadWord (uint32_t payloadword) |
Append single payload word to the current payload. | |
void | increasePageCount () |
Increase the page counter of the current payload. | |
const std::vector< uint32_t > & | getPayloadWords () const |
Get the payload words (as 32 bit words) contributing to the current payload. | |
int | getNumberOfPages () const |
Get the number of pages contributing to the payload. | |
void | reset () |
Resetting payload words and page counter. | |
int | getPayloadSize () const |
Get the size of the payload. | |
Class for raw payload excluding raw data headers from one or multiple DMA pages.
Container of 32-bit words in the current payload which can come from a single DMA page or, in case the payload had to be split into multiple pages due to exceeding of the page size, from multiple DMA pages. A page counter provides the amount of DMA pages contributing to the current payload.
Definition at line 36 of file RawPayload.h.
|
default |
Constructor.
RawPayload::RawPayload | ( | const gsl::span< const uint32_t > | payloadwords, |
int | numpages | ||
) |
Constructor.
payloadwords | Payload words of one or multiple pages |
numpages | Number of DMA pages contributing to the payload |
Definition at line 16 of file RawPayload.cxx.
|
default |
Destructor.
|
inline |
Append single payload word to the current payload.
payloadword | Payload word to be appended to the current payload |
Definition at line 60 of file RawPayload.h.
void RawPayload::appendPayloadWords | ( | const gsl::span< const uint32_t > | payloadwords | ) |
Append many words to the current payload (usually of a given DMA page)
payloadwords | Payload words to be appened to the current payload |
Definition at line 24 of file RawPayload.cxx.
|
inline |
Get the number of pages contributing to the payload.
Definition at line 71 of file RawPayload.h.
|
inline |
|
inline |
Get the payload words (as 32 bit words) contributing to the current payload.
Definition at line 67 of file RawPayload.h.
|
inline |
Increase the page counter of the current payload.
Definition at line 63 of file RawPayload.h.
void RawPayload::reset | ( | ) |
Resetting payload words and page counter.
Definition at line 31 of file RawPayload.cxx.
Set the number of pages contributing to the current payload.
numpages | Number of DMA pages contributing to the payload |
Definition at line 52 of file RawPayload.h.