|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
I&M4: PROFIsafe signature (binary, not text). More...
#include <protocol.h>
Collaboration diagram for profinet::PNInM4:Public Member Functions | |
| bool | operator== (const PNInM4 &) const =default |
| Compares two PNInM4 for equality. | |
Static Public Member Functions | |
| static PNInM4 | Parse (const Bytes &data) |
| Parse an I&M4 record from raw bytes. | |
Public Attributes | |
| std::array< std::uint8_t, blockHeaderLength > | blockHeader {} |
| Nested 6-byte block header. | |
| std::array< std::uint8_t, 54 > | imSignature {} |
| PROFIsafe signature bytes. | |
Static Public Attributes | |
| static constexpr std::uint16_t | IDX = 0xAFF4 |
| Record data index for I&M4. | |
| static constexpr std::size_t | kSize = 60 |
| Size in bytes of this record. | |
I&M4: PROFIsafe signature (binary, not text).
Definition at line 1748 of file protocol.h.
|
default |
Parse an I&M4 record from raw bytes.
| data | Bytes starting at the BlockHeader field. |
Definition at line 1767 of file protocol.h.
References blockHeader, profinet::blockHeaderLength, profinet::wire::Reader::Fixed(), imSignature, and kSize.
Referenced by profinet::rpc::RPCCon::ReadIm4().
Here is the call graph for this function:
Here is the caller graph for this function:| std::array<std::uint8_t, blockHeaderLength> profinet::PNInM4::blockHeader {} |
|
staticconstexpr |
Record data index for I&M4.
Definition at line 1752 of file protocol.h.
Referenced by profinet::rpc::RpcTests::MakeImPayload(), and profinet::rpc::RPCCon::ReadIm4().
| std::array<std::uint8_t, 54> profinet::PNInM4::imSignature {} |
|
staticconstexpr |
Size in bytes of this record.
Definition at line 1762 of file protocol.h.
Referenced by profinet::rpc::RpcTests::MakeImPayload(), Parse(), and TEST_F().