PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
profinet::PNInMReserved< Idx > Struct Template Reference

I&M6-I&M15: reserved for future use per IEC 61158-6-10. More...

#include <protocol.h>

+ Collaboration diagram for profinet::PNInMReserved< Idx >:

Public Member Functions

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

Static Public Member Functions

static PNInMReserved Parse (const Bytes &data)
 Parse a reserved I&M record from raw bytes.
 

Public Attributes

std::array< std::uint8_t, blockHeaderLenghtblockHeader {}
 Nested 6-byte block header.
 
Bytes payload
 Opaque remaining payload.
 

Static Public Attributes

static constexpr std::uint16_t IDX = Idx
 Record data index for this reserved I&M slot.
 

Detailed Description

template<std::uint16_t Idx>
struct profinet::PNInMReserved< Idx >

I&M6-I&M15: reserved for future use per IEC 61158-6-10.

Only the 6-byte BlockHeader is defined; the remainder is carried as opaque data.

Template Parameters
IdxRecord data index for this reserved I&M slot.

Definition at line 1386 of file protocol.h.

Member Function Documentation

◆ operator==()

template<std::uint16_t Idx>
bool profinet::PNInMReserved< Idx >::operator== ( const PNInMReserved< Idx > &  ) const
default

Compares two PNInMReserved for equality.

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

◆ Parse()

template<std::uint16_t Idx>
static PNInMReserved profinet::PNInMReserved< Idx >::Parse ( const Bytes data)
inlinestatic

Parse a reserved I&M record from raw bytes.

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

Definition at line 1402 of file protocol.h.

References profinet::PNInMReserved< Idx >::blockHeader, profinet::blockHeaderLenght, profinet::wire::Reader::Fixed(), profinet::PNInMReserved< Idx >::payload, profinet::wire::Reader::ReadBytes(), and profinet::wire::Reader::Remaining().

Referenced by profinet::rpc::RPCCon::ReadIm10(), profinet::rpc::RPCCon::ReadIm11(), profinet::rpc::RPCCon::ReadIm12(), profinet::rpc::RPCCon::ReadIm13(), profinet::rpc::RPCCon::ReadIm14(), profinet::rpc::RPCCon::ReadIm15(), profinet::rpc::RPCCon::ReadIm6(), profinet::rpc::RPCCon::ReadIm7(), profinet::rpc::RPCCon::ReadIm8(), and profinet::rpc::RPCCon::ReadIm9().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ blockHeader

template<std::uint16_t Idx>
std::array<std::uint8_t, blockHeaderLenght> profinet::PNInMReserved< Idx >::blockHeader {}

Nested 6-byte block header.

Definition at line 1394 of file protocol.h.

Referenced by profinet::PNInMReserved< Idx >::Parse().

◆ IDX

◆ payload

template<std::uint16_t Idx>
Bytes profinet::PNInMReserved< Idx >::payload

Opaque remaining payload.

Definition at line 1397 of file protocol.h.

Referenced by profinet::PNInMReserved< Idx >::Parse().


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