PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
profinet::device::ProfinetDeviceDiagnosisTests Class Reference
+ Inheritance diagram for profinet::device::ProfinetDeviceDiagnosisTests:
+ Collaboration diagram for profinet::device::ProfinetDeviceDiagnosisTests:

Protected Member Functions

void SetUp () override
 
Bytes MakeBlockHeader (std::uint16_t blockType, std::uint16_t blockLength, std::uint8_t verHi=1, std::uint8_t verLo=0)
 
Bytes MakeModuleDiffBlock (std::uint16_t slot, std::uint16_t subslot, std::uint16_t moduleState, std::uint16_t submoduleState)
 

Protected Attributes

std::unique_ptr< ProfinetDevice > device
 
rpc::MockRPCCon * rpc
 

Detailed Description

Definition at line 454 of file test_deviceWrappers.cpp.

Member Function Documentation

◆ MakeBlockHeader()

Bytes profinet::device::ProfinetDeviceDiagnosisTests::MakeBlockHeader ( std::uint16_t  blockType,
std::uint16_t  blockLength,
std::uint8_t  verHi = 1,
std::uint8_t  verLo = 0 
)
inlineprotected

Definition at line 464 of file test_deviceWrappers.cpp.

References profinet::wire::PutU16(), and profinet::wire::PutU8().

Referenced by MakeModuleDiffBlock().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MakeModuleDiffBlock()

Bytes profinet::device::ProfinetDeviceDiagnosisTests::MakeModuleDiffBlock ( std::uint16_t  slot,
std::uint16_t  subslot,
std::uint16_t  moduleState,
std::uint16_t  submoduleState 
)
inlineprotected

Definition at line 477 of file test_deviceWrappers.cpp.

References MakeBlockHeader(), profinet::ModuleDifference, profinet::wire::PutU16(), and profinet::wire::PutU32().

+ Here is the call graph for this function:

◆ SetUp()

void profinet::device::ProfinetDeviceDiagnosisTests::SetUp ( )
inlineoverrideprotected

Definition at line 457 of file test_deviceWrappers.cpp.

References device, and rpc.

Member Data Documentation

◆ device

std::unique_ptr<ProfinetDevice> profinet::device::ProfinetDeviceDiagnosisTests::device
protected

Definition at line 505 of file test_deviceWrappers.cpp.

Referenced by SetUp().

◆ rpc

rpc::MockRPCCon* profinet::device::ProfinetDeviceDiagnosisTests::rpc
protected

Definition at line 506 of file test_deviceWrappers.cpp.

Referenced by SetUp().


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