|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
I&M5: free-text annotation. More...
#include <protocol.h>
Collaboration diagram for profinet::PNInM5:Public Member Functions | |
| bool | operator== (const PNInM5 &) const =default |
| Compares two PNInM5 for equality. | |
Static Public Member Functions | |
| static PNInM5 | Parse (const Bytes &data) |
| Parse an I&M5 record from raw bytes. | |
Public Attributes | |
| std::array< std::uint8_t, blockHeaderLength > | blockHeader {} |
| Nested 6-byte block header. | |
| std::string | imAnnotation |
| Free-text annotation (64 chars). | |
Static Public Attributes | |
| static constexpr std::uint16_t | IDX = 0xAFF5 |
| Record data index for I&M5. | |
| static constexpr std::size_t | kSize = 70 |
| Size in bytes of this record. | |
I&M5: free-text annotation.
Definition at line 1788 of file protocol.h.
|
default |
Parse an I&M5 record from raw bytes.
| data | Bytes starting at the BlockHeader field. |
Definition at line 1807 of file protocol.h.
References blockHeader, profinet::blockHeaderLength, profinet::DecodeBytes(), profinet::wire::Reader::Fixed(), imAnnotation, kSize, and profinet::wire::Reader::ReadBytes().
Referenced by profinet::rpc::RPCCon::ReadIm5().
Here is the call graph for this function:
Here is the caller graph for this function:| std::array<std::uint8_t, blockHeaderLength> profinet::PNInM5::blockHeader {} |
|
staticconstexpr |
Record data index for I&M5.
Definition at line 1792 of file protocol.h.
Referenced by profinet::rpc::RpcTests::MakeImPayload(), and profinet::rpc::RPCCon::ReadIm5().
| std::string profinet::PNInM5::imAnnotation |
|
staticconstexpr |
Size in bytes of this record.
Definition at line 1802 of file protocol.h.
Referenced by profinet::rpc::RpcTests::MakeImPayload(), Parse(), and TEST_F().