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

Fixture for input Ethernet parsing and cycle-counter tracking. More...

+ Inheritance diagram for profinet::cyclic::CyclicFrameTests:
+ Collaboration diagram for profinet::cyclic::CyclicFrameTests:

Protected Member Functions

void SetUp () override
 Construct a controller with a one-count RX cycle step.
 
void ProcessCounter (std::uint16_t cycleCounter)
 Process a valid input frame for a specific cycle counter.
 

Protected Attributes

std::unique_ptr< CyclicController > controller
 Controller under test.
 
std::unique_ptr< asio::io_context > ioContext
 Shared ASIO context.
 

Detailed Description

Fixture for input Ethernet parsing and cycle-counter tracking.

Definition at line 986 of file test_cyclicMore.cpp.

Member Function Documentation

◆ ProcessCounter()

void profinet::cyclic::CyclicFrameTests::ProcessCounter ( std::uint16_t  cycleCounter)
inlineprotected

Process a valid input frame for a specific cycle counter.

Parameters
cycleCounterRX cycle counter.

Definition at line 1001 of file test_cyclicMore.cpp.

References controller, profinet::kInputFrameId, and profinet::cyclic::CyclicControllerTestAccess::ProcessInputFrame().

+ Here is the call graph for this function:

◆ SetUp()

void profinet::cyclic::CyclicFrameTests::SetUp ( )
inlineoverrideprotected

Construct a controller with a one-count RX cycle step.

Definition at line 990 of file test_cyclicMore.cpp.

References controller, ioContext, profinet::kInputFrameId, and profinet::kOutputFrameId.

Member Data Documentation

◆ controller

std::unique_ptr<CyclicController> profinet::cyclic::CyclicFrameTests::controller
protected

Controller under test.

Definition at line 1009 of file test_cyclicMore.cpp.

Referenced by ProcessCounter(), and SetUp().

◆ ioContext

std::unique_ptr<asio::io_context> profinet::cyclic::CyclicFrameTests::ioContext
protected

Shared ASIO context.

Definition at line 1012 of file test_cyclicMore.cpp.

Referenced by SetUp().


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