Project
Loading...
Searching...
No Matches
o2::mid::LinkDecoder Class Reference

#include <LinkDecoder.h>

Public Member Functions

 LinkDecoder (std::function< void(gsl::span< const uint8_t >, uint32_t orbit, uint32_t trigger, std::vector< ROBoard > &data, std::vector< ROFRecord > &rofs)> decode)
 
void process (gsl::span< const uint8_t > payload, uint32_t orbit, uint32_t trigger, std::vector< ROBoard > &data, std::vector< ROFRecord > &rofs)
 
template<class RDH >
void process (gsl::span< const uint8_t > payload, const RDH &rdh, std::vector< ROBoard > &data, std::vector< ROFRecord > &rofs)
 

Protected Attributes

std::function< void(gsl::span< const uint8_t >, uint32_t orbit, uint32_t trigger, std::vector< ROBoard > &data, std::vector< ROFRecord > &rofs)> mDecode {nullptr}
 

Detailed Description

Definition at line 35 of file LinkDecoder.h.

Constructor & Destructor Documentation

◆ LinkDecoder()

o2::mid::LinkDecoder::LinkDecoder ( std::function< void(gsl::span< const uint8_t >, uint32_t orbit, uint32_t trigger, std::vector< ROBoard > &data, std::vector< ROFRecord > &rofs)>  decode)
inline

Definition at line 38 of file LinkDecoder.h.

Member Function Documentation

◆ process() [1/2]

template<class RDH >
void o2::mid::LinkDecoder::process ( gsl::span< const uint8_t >  payload,
const RDH rdh,
std::vector< ROBoard > &  data,
std::vector< ROFRecord > &  rofs 
)
inline

Definition at line 42 of file LinkDecoder.h.

◆ process() [2/2]

void o2::mid::LinkDecoder::process ( gsl::span< const uint8_t >  payload,
uint32_t  orbit,
uint32_t  trigger,
std::vector< ROBoard > &  data,
std::vector< ROFRecord > &  rofs 
)

Decodes the data

Definition at line 212 of file LinkDecoder.cxx.

Member Data Documentation

◆ mDecode

std::function<void(gsl::span<const uint8_t>, uint32_t orbit, uint32_t trigger, std::vector<ROBoard>& data, std::vector<ROFRecord>& rofs)> o2::mid::LinkDecoder::mDecode {nullptr}
protected

Definition at line 48 of file LinkDecoder.h.


The documentation for this class was generated from the following files: