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

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

Detailed Description

I&M5: free-text annotation.

Definition at line 1342 of file protocol.h.

Member Function Documentation

◆ operator==()

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

Compares two PNInM5 for equality.

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

◆ Parse()

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

Parse an I&M5 record from raw bytes.

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

Definition at line 1361 of file protocol.h.

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

Member Data Documentation

◆ blockHeader

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

Nested 6-byte block header.

Definition at line 1350 of file protocol.h.

Referenced by Parse().

◆ IDX

constexpr std::uint16_t profinet::PNInM5::IDX = 0xAFF5
staticconstexpr

Record data index for I&M5.

Definition at line 1346 of file protocol.h.

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

◆ imAnnotation

std::string profinet::PNInM5::imAnnotation

Free-text annotation (64 chars).

Definition at line 1353 of file protocol.h.

Referenced by Parse().

◆ kSize

constexpr std::size_t profinet::PNInM5::kSize = 70
staticconstexpr

Size in bytes of this record.

Definition at line 1356 of file protocol.h.

Referenced by Parse().


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