Struct ToHostElinkStats

Nested Relationships

Nested Types

Struct Documentation

struct ToHostElinkStats

Monitoring info for each decoder (one per e-link) part of a reader.

Public Functions

inline void increment_processed_blocks()

Increment the count of processed blocks.

inline void increment_dropped_blocks()

Increment the count of dropped blocks.

inline void increment_oosequence_l0id()

Increment the count of out-of-sequence L0ID.

void update_processed_chunk(const uint8_t status, const uint32_t size)

Update stats when a chunk is processed.

Parameters:
  • status -- Status of the chunk

  • size -- Size of the chunk in bytes

inline void increment_empty_chunks()

Increment the count of empty chunks.

ToHostElinkStats get_increment(ToHostElinkStats &stats)

Get the increment of e-link stats compared to previous stats.

Parameters:

stats -- Previous e-link stats

Returns:

Incremented e-link stats

ToHostElinkStats() = default

Default constructor.

inline explicit ToHostElinkStats(uint64_t id)

Constructor to initialize e-link stats with a specific ID.

Parameters:

elink_id -- E-link ID

Public Members

E-link ID.

uint64_t processed_blocks = 0

Number of processed blocks.

uint64_t processed_chunks = 0

Number of processed chunks.

uint64_t dropped_empty_chunks = 0

Number of dropped empty chunks.

uint64_t processed_bytes = 0

Number of processed bytes.

float rate_chunks_kHz = 0

Chunk rate in kHz.

uint64_t dropped_blocks = 0

Number of dropped blocks.

uint32_t largest_chunk_size = 0

Size of the largest chunk.

uint32_t average_chunk_bytes = 0

Average chunk size in bytes.

uint64_t sw_trunc_chunks = 0

Number of software truncated chunks.

uint64_t fw_trunc_chunks = 0

Number of firmware truncated chunks.

uint64_t sw_error_chunks = 0

Number of software error chunks.

uint64_t fw_error_chunks = 0

Number of firmware error chunks.

uint64_t fw_crc_chunks = 0

Number of firmware CRC chunks.

uint64_t oosequence_l0id = 0

Out-of-sequence L0ID count.

struct ts

Timestamp of the last update.