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

#include <ELinkDecoder.h>

Public Member Functions

void setBareDecoder (bool isBare)
 
void add (const uint8_t byte)
 Adds a byte.
 
void addAndComputeSize (const uint8_t byte)
 
template<class ITERATOR >
bool addCore (ITERATOR &it, const ITERATOR &end)
 
template<class ITERATOR >
bool add (ITERATOR &it, const ITERATOR &end)
 
bool addCore (size_t &idx, gsl::span< const uint8_t > payload, size_t step)
 Adds the first 5 bytes.
 
bool add (size_t &idx, gsl::span< const uint8_t > payload, size_t step)
 
bool isZero (uint8_t byte) const
 Checks if this is a zero.
 
bool isComplete () const
 Checks if we have all of the information needed for the decoding.
 
uint8_t getStatusWord () const
 Gets the status word.
 
uint8_t getTriggerWord () const
 Gets the trigger word.
 
uint16_t getCounter () const
 Gets the counter.
 
uint8_t getId () const
 Gets the card ID.
 
uint8_t getInputs () const
 Gets the inputs.
 
uint8_t getCrateId () const
 Gets the crate ID when available.
 
uint16_t getPattern (int cathode, int chamber) const
 
size_t getNBytes () const
 Gets the number of bytes read.
 
void reset ()
 

Detailed Description

Definition at line 29 of file ELinkDecoder.h.

Member Function Documentation

◆ add() [1/3]

void o2::mid::ELinkDecoder::add ( const uint8_t  byte)
inline

Adds a byte.

Definition at line 34 of file ELinkDecoder.h.

◆ add() [2/3]

template<class ITERATOR >
bool o2::mid::ELinkDecoder::add ( ITERATOR &  it,
const ITERATOR &  end 
)
inline

Adds the board bytes

Definition at line 44 of file ELinkDecoder.h.

◆ add() [3/3]

bool o2::mid::ELinkDecoder::add ( size_t &  idx,
gsl::span< const uint8_t >  payload,
size_t  step 
)

Adds the bytes of the board

Definition at line 48 of file ELinkDecoder.cxx.

◆ addAndComputeSize()

void o2::mid::ELinkDecoder::addAndComputeSize ( const uint8_t  byte)

Adds next byte and computes the expected data size

Definition at line 65 of file ELinkDecoder.cxx.

◆ addCore() [1/2]

template<class ITERATOR >
bool o2::mid::ELinkDecoder::addCore ( ITERATOR &  it,
const ITERATOR &  end 
)
inline

Adds the first 5 bytes

Definition at line 37 of file ELinkDecoder.h.

◆ addCore() [2/2]

bool o2::mid::ELinkDecoder::addCore ( size_t &  idx,
gsl::span< const uint8_t >  payload,
size_t  step 
)
inline

Adds the first 5 bytes.

Definition at line 62 of file ELinkDecoder.h.

◆ getCounter()

uint16_t o2::mid::ELinkDecoder::getCounter ( ) const
inline

Gets the counter.

Definition at line 76 of file ELinkDecoder.h.

◆ getCrateId()

uint8_t o2::mid::ELinkDecoder::getCrateId ( ) const
inline

Gets the crate ID when available.

Definition at line 82 of file ELinkDecoder.h.

◆ getId()

uint8_t o2::mid::ELinkDecoder::getId ( ) const
inline

Gets the card ID.

Definition at line 78 of file ELinkDecoder.h.

◆ getInputs()

uint8_t o2::mid::ELinkDecoder::getInputs ( ) const
inline

Gets the inputs.

Definition at line 80 of file ELinkDecoder.h.

◆ getNBytes()

size_t o2::mid::ELinkDecoder::getNBytes ( ) const
inline

Gets the number of bytes read.

Definition at line 85 of file ELinkDecoder.h.

◆ getPattern()

uint16_t o2::mid::ELinkDecoder::getPattern ( int  cathode,
int  chamber 
) const

Gets the pattern

Definition at line 96 of file ELinkDecoder.cxx.

◆ getStatusWord()

uint8_t o2::mid::ELinkDecoder::getStatusWord ( ) const
inline

Gets the status word.

Definition at line 72 of file ELinkDecoder.h.

◆ getTriggerWord()

uint8_t o2::mid::ELinkDecoder::getTriggerWord ( ) const
inline

Gets the trigger word.

Definition at line 74 of file ELinkDecoder.h.

◆ isComplete()

bool o2::mid::ELinkDecoder::isComplete ( ) const
inline

Checks if we have all of the information needed for the decoding.

Definition at line 70 of file ELinkDecoder.h.

◆ isZero()

bool o2::mid::ELinkDecoder::isZero ( uint8_t  byte) const
inline

Checks if this is a zero.

Definition at line 67 of file ELinkDecoder.h.

◆ reset()

void o2::mid::ELinkDecoder::reset ( )

Reset inner objects

Definition at line 89 of file ELinkDecoder.cxx.

◆ setBareDecoder()

void o2::mid::ELinkDecoder::setBareDecoder ( bool  isBare)

Sets the decoder type

Definition at line 24 of file ELinkDecoder.cxx.


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