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

Fixture for input callbacks. More...

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

Protected Member Functions

void SetUp () override
 Construct the controller used by callback tests.
 
void DeliverInput (std::uint8_t iops)
 Deliver an input frame and allow the configured callbacks to run.
 

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 callbacks.

Definition at line 813 of file test_cyclicMore.cpp.

Member Function Documentation

◆ DeliverInput()

void profinet::cyclic::CyclicCallbackTests::DeliverInput ( std::uint8_t  iops)
inlineprotected

Deliver an input frame and allow the configured callbacks to run.

Parameters
iopsIOPS byte to deliver.

Definition at line 827 of file test_cyclicMore.cpp.

References controller, profinet::rt::RTFrame::DATA_RUN, profinet::rt::RTFrame::DATA_VALID, profinet::kInputFrameId, payload, and profinet::cyclic::CyclicControllerTestAccess::ProcessInputFrame().

+ Here is the call graph for this function:

◆ SetUp()

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

Construct the controller used by callback tests.

Definition at line 817 of file test_cyclicMore.cpp.

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

Member Data Documentation

◆ controller

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

Controller under test.

Definition at line 839 of file test_cyclicMore.cpp.

Referenced by DeliverInput(), and SetUp().

◆ ioContext

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

Shared ASIO context.

Definition at line 842 of file test_cyclicMore.cpp.

Referenced by SetUp().


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