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

I&M3: free-text descriptor. More...

#include <protocol.h>

+ Collaboration diagram for profinet::PNInM3:

Public Member Functions

bool operator== (const PNInM3 &) const =default
 Compares two PNInM3 for equality.
 

Static Public Member Functions

static PNInM3 Parse (const Bytes &data)
 Parse an I&M3 record from raw bytes.
 

Public Attributes

std::array< std::uint8_t, blockHeaderLenghtblockHeader {}
 Nested 6-byte block header.
 
std::string imDescriptor
 Free-text descriptor (54 chars).
 

Static Public Attributes

static constexpr std::uint16_t IDX = 0xAFF3
 Record data index for I&M3.
 
static constexpr std::size_t kSize = 60
 Size in bytes of this record.
 

Detailed Description

I&M3: free-text descriptor.

Definition at line 1262 of file protocol.h.

Member Function Documentation

◆ operator==()

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

Compares two PNInM3 for equality.

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

◆ Parse()

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

Parse an I&M3 record from raw bytes.

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

Definition at line 1281 of file protocol.h.

References blockHeader, profinet::blockHeaderLenght, profinet::DecodeBytes(), profinet::wire::Reader::Fixed(), imDescriptor, kSize, and profinet::wire::Reader::ReadBytes().

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

+ 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::PNInM3::blockHeader {}

Nested 6-byte block header.

Definition at line 1270 of file protocol.h.

Referenced by Parse().

◆ IDX

constexpr std::uint16_t profinet::PNInM3::IDX = 0xAFF3
staticconstexpr

Record data index for I&M3.

Definition at line 1266 of file protocol.h.

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

◆ imDescriptor

std::string profinet::PNInM3::imDescriptor

Free-text descriptor (54 chars).

Definition at line 1273 of file protocol.h.

Referenced by Parse().

◆ kSize

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

Size in bytes of this record.

Definition at line 1276 of file protocol.h.

Referenced by Parse().


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