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

Describes I/O data for a submodule (one direction: Input or Output). More...

#include <blocks.h>

+ Collaboration diagram for profinet::blocks::ExpectedSubmoduleDataDescription:

Public Member Functions

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

Public Attributes

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

Detailed Description

Describes I/O data for a submodule (one direction: Input or Output).

Definition at line 578 of file blocks.h.

Member Function Documentation

◆ ToBytes()

Bytes profinet::blocks::ExpectedSubmoduleDataDescription::ToBytes ( ) const

Serialize this description to raw bytes.

Returns
The encoded bytes.

Definition at line 791 of file blocks.cpp.

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::blocks::ExpectedSubmoduleDataDescription::dataDescription = 1

Data direction: 1 = Input, 2 = Output.

Definition at line 581 of file blocks.h.

Referenced by ToBytes().

◆ lengthIocs

std::uint8_t profinet::blocks::ExpectedSubmoduleDataDescription::lengthIocs = 1

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

Definition at line 587 of file blocks.h.

Referenced by ToBytes().

◆ lengthIops

std::uint8_t profinet::blocks::ExpectedSubmoduleDataDescription::lengthIops = 1

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

Definition at line 590 of file blocks.h.

Referenced by ToBytes().

◆ submoduleDataLength

std::uint16_t profinet::blocks::ExpectedSubmoduleDataDescription::submoduleDataLength = 0

Length in bytes of this direction's cyclic data.

Definition at line 584 of file blocks.h.

Referenced by ToBytes().


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