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

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, blockHeaderLenghtblockHeader {}
 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.
 

Detailed Description

I&M4: PROFIsafe signature (binary, not text).

Definition at line 1302 of file protocol.h.

Member Function Documentation

◆ operator==()

bool profinet::PNInM4::operator== ( const PNInM4 ) const
default

Compares two PNInM4 for equality.

Two PNInM4 are equal when all scalar configuration fields are equal.

◆ Parse()

static PNInM4 profinet::PNInM4::Parse ( const Bytes data)
inlinestatic

Parse an I&M4 record from raw bytes.

Parameters
dataBytes starting at the BlockHeader field.
Returns
The parsed record.

Definition at line 1321 of file protocol.h.

References blockHeader, profinet::blockHeaderLenght, 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:

Member Data Documentation

◆ blockHeader

std::array<std::uint8_t, blockHeaderLenght> profinet::PNInM4::blockHeader {}

Nested 6-byte block header.

Definition at line 1310 of file protocol.h.

Referenced by Parse().

◆ IDX

constexpr std::uint16_t profinet::PNInM4::IDX = 0xAFF4
staticconstexpr

Record data index for I&M4.

Definition at line 1306 of file protocol.h.

Referenced by profinet::rpc::RPCCon::ReadIm4().

◆ imSignature

std::array<std::uint8_t, 54> profinet::PNInM4::imSignature {}

PROFIsafe signature bytes.

Definition at line 1313 of file protocol.h.

Referenced by Parse().

◆ kSize

constexpr std::size_t profinet::PNInM4::kSize = 60
staticconstexpr

Size in bytes of this record.

Definition at line 1316 of file protocol.h.

Referenced by Parse().


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