|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
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. | |
Describes one direction (input or output) of a submodule's cyclic data.
Definition at line 2003 of file protocol.h.
|
inline |
Serialize this description back to raw 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:| std::uint16_t profinet::PNExpectedSubmoduleDataDescription::dataDescription = 0 |
Data direction: 1 = Input, 2 = Output.
Definition at line 2006 of file protocol.h.
Referenced by ToBytes().
|
staticconstexpr |
Size in bytes of this description.
Definition at line 2018 of file protocol.h.
| 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().
| 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().
| 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().