PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
profinet::cyclic::CyclicStatsSnapshot Struct Reference

Copyable snapshot of cyclic communication statistics. More...

#include <cyclic.h>

+ Collaboration diagram for profinet::cyclic::CyclicStatsSnapshot:

Public Member Functions

std::uint64_t AvgCycleTimeUs () const
 Compute average TX cycle duration.
 

Public Attributes

std::uint64_t framesSent {}
 
std::uint64_t framesReceived {}
 
std::uint64_t framesMissed {}
 
std::uint64_t framesInvalid {}
 
std::uint64_t framesDuplicate {}
 
std::uint64_t framesOutOfOrder {}
 
std::uint32_t lastCycleTimeUs {}
 
std::uint32_t maxJitterUs {}
 
std::uint32_t minCycleTimeUs {}
 
std::uint32_t maxCycleTimeUs {}
 
std::chrono::steady_clock::time_point lastReceiveTime
 
int consecutiveTimeouts {}
 
std::uint64_t cycleTimeSumUs {}
 
std::uint64_t cycleCount {}
 

Detailed Description

Copyable snapshot of cyclic communication statistics.

Definition at line 120 of file cyclic.h.

Member Function Documentation

◆ AvgCycleTimeUs()

std::uint64_t profinet::cyclic::CyclicStatsSnapshot::AvgCycleTimeUs ( ) const
inline

Compute average TX cycle duration.

Returns
Average cycle duration in microseconds.

Definition at line 143 of file cyclic.h.

References cycleCount, and cycleTimeSumUs.

Member Data Documentation

◆ consecutiveTimeouts

int profinet::cyclic::CyclicStatsSnapshot::consecutiveTimeouts {}

Definition at line 136 of file cyclic.h.

Referenced by profinet::cyclic::CyclicController::StatsSnapshot().

◆ cycleCount

std::uint64_t profinet::cyclic::CyclicStatsSnapshot::cycleCount {}

Definition at line 139 of file cyclic.h.

Referenced by AvgCycleTimeUs(), and profinet::cyclic::CyclicController::StatsSnapshot().

◆ cycleTimeSumUs

std::uint64_t profinet::cyclic::CyclicStatsSnapshot::cycleTimeSumUs {}

Definition at line 138 of file cyclic.h.

Referenced by AvgCycleTimeUs(), and profinet::cyclic::CyclicController::StatsSnapshot().

◆ framesDuplicate

std::uint64_t profinet::cyclic::CyclicStatsSnapshot::framesDuplicate {}

Definition at line 126 of file cyclic.h.

Referenced by profinet::cyclic::CyclicController::StatsSnapshot().

◆ framesInvalid

std::uint64_t profinet::cyclic::CyclicStatsSnapshot::framesInvalid {}

Definition at line 125 of file cyclic.h.

Referenced by profinet::cyclic::CyclicController::StatsSnapshot().

◆ framesMissed

std::uint64_t profinet::cyclic::CyclicStatsSnapshot::framesMissed {}

Definition at line 124 of file cyclic.h.

Referenced by profinet::cyclic::CyclicController::StatsSnapshot().

◆ framesOutOfOrder

std::uint64_t profinet::cyclic::CyclicStatsSnapshot::framesOutOfOrder {}

Definition at line 127 of file cyclic.h.

Referenced by profinet::cyclic::CyclicController::StatsSnapshot().

◆ framesReceived

std::uint64_t profinet::cyclic::CyclicStatsSnapshot::framesReceived {}

Definition at line 123 of file cyclic.h.

Referenced by profinet::cyclic::CyclicController::StatsSnapshot().

◆ framesSent

std::uint64_t profinet::cyclic::CyclicStatsSnapshot::framesSent {}

Definition at line 122 of file cyclic.h.

Referenced by profinet::cyclic::CyclicController::StatsSnapshot().

◆ lastCycleTimeUs

std::uint32_t profinet::cyclic::CyclicStatsSnapshot::lastCycleTimeUs {}

Definition at line 129 of file cyclic.h.

Referenced by profinet::cyclic::CyclicController::StatsSnapshot().

◆ lastReceiveTime

std::chrono::steady_clock::time_point profinet::cyclic::CyclicStatsSnapshot::lastReceiveTime

Definition at line 134 of file cyclic.h.

Referenced by profinet::cyclic::CyclicController::StatsSnapshot().

◆ maxCycleTimeUs

std::uint32_t profinet::cyclic::CyclicStatsSnapshot::maxCycleTimeUs {}

Definition at line 132 of file cyclic.h.

Referenced by profinet::cyclic::CyclicController::StatsSnapshot().

◆ maxJitterUs

std::uint32_t profinet::cyclic::CyclicStatsSnapshot::maxJitterUs {}

Definition at line 130 of file cyclic.h.

Referenced by profinet::cyclic::CyclicController::StatsSnapshot().

◆ minCycleTimeUs

std::uint32_t profinet::cyclic::CyclicStatsSnapshot::minCycleTimeUs {}

Definition at line 131 of file cyclic.h.

Referenced by profinet::cyclic::CyclicController::StatsSnapshot().


The documentation for this struct was generated from the following file: