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

Test fixture for DCP request wire-format serialization. More...

+ Inheritance diagram for profinet::dcp::DcpWireFormatTest:
+ Collaboration diagram for profinet::dcp::DcpWireFormatTest:

Protected Member Functions

Bytes BuildSetNameRequest (const std::string &name, bool permanent=false) const
 Build a DCP SET request for a station name.
 
profinet::Bytes BuildSignalRequest () const
 Build a DCP Signal request.
 

Detailed Description

Test fixture for DCP request wire-format serialization.

Provides deterministic source and destination MAC addresses and common helpers used by the DCP SET and Signal serialization tests.

Definition at line 128 of file test_dcpWireFormat.cpp.

Member Function Documentation

◆ BuildSetNameRequest()

Bytes profinet::dcp::DcpWireFormatTest::BuildSetNameRequest ( const std::string &  name,
bool  permanent = false 
) const
inlineprotected

Build a DCP SET request for a station name.

Parameters
nameStation name to serialize.
permanentWhether the BlockQualifier requests permanent storage.
Returns
Complete serialized Ethernet frame.

Definition at line 137 of file test_dcpWireFormat.cpp.

References profinet::dcp::BuildSetParamRequest().

+ Here is the call graph for this function:

◆ BuildSignalRequest()

profinet::Bytes profinet::dcp::DcpWireFormatTest::BuildSignalRequest ( ) const
inlineprotected

Build a DCP Signal request.

Returns
Complete serialized Ethernet frame.

Definition at line 145 of file test_dcpWireFormat.cpp.

References profinet::dcp::BuildDcpSignalRequest().

+ Here is the call graph for this function:

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