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

Describes one direction (input or output) of a submodule's cyclic data. More...

#include <protocol.h>

+ Collaboration diagram for profinet::PNExpectedSubmoduleDataDescription:

Public Member Functions

Bytes ToBytes () const
 Serialize this description back to raw bytes.
 

Public Attributes

std::uint16_t dataDescription = 0
 Data direction: 1 = Input, 2 = Output.
 
std::uint16_t submoduleDataLength = 0
 Length in bytes of this direction's cyclic data.
 
std::uint8_t lengthIocs = 0
 Length in bytes of the IOCS (consumer status) trailer.
 
std::uint8_t lengthIops = 0
 Length in bytes of the IOPS (provider status) trailer.
 

Static Public Attributes

static constexpr std::size_t kSize = 6
 Size in bytes of this description.
 

Detailed Description

Describes one direction (input or output) of a submodule's cyclic data.

Definition at line 2003 of file protocol.h.

Member Function Documentation

◆ ToBytes()

Bytes profinet::PNExpectedSubmoduleDataDescription::ToBytes ( ) const
inline

Serialize this description back to raw bytes.

Returns
The encoded bytes.

Definition at line 2022 of file protocol.h.

References dataDescription, lengthIocs, lengthIops, profinet::wire::PutU16(), profinet::wire::PutU8(), and submoduleDataLength.

+ Here is the call graph for this function:

Member Data Documentation

◆ dataDescription

std::uint16_t profinet::PNExpectedSubmoduleDataDescription::dataDescription = 0

Data direction: 1 = Input, 2 = Output.

Definition at line 2006 of file protocol.h.

Referenced by ToBytes().

◆ kSize

constexpr std::size_t profinet::PNExpectedSubmoduleDataDescription::kSize = 6
staticconstexpr

Size in bytes of this description.

Definition at line 2018 of file protocol.h.

◆ lengthIocs

std::uint8_t profinet::PNExpectedSubmoduleDataDescription::lengthIocs = 0

Length in bytes of the IOCS (consumer status) trailer.

Definition at line 2012 of file protocol.h.

Referenced by ToBytes().

◆ lengthIops

std::uint8_t profinet::PNExpectedSubmoduleDataDescription::lengthIops = 0

Length in bytes of the IOPS (provider status) trailer.

Definition at line 2015 of file protocol.h.

Referenced by ToBytes().

◆ submoduleDataLength

std::uint16_t profinet::PNExpectedSubmoduleDataDescription::submoduleDataLength = 0

Length in bytes of this direction's cyclic data.

Definition at line 2009 of file protocol.h.

Referenced by ToBytes().


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