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

LLDP peer information from PDPortDataReal. More...

#include <blocks.h>

+ Collaboration diagram for profinet::blocks::PeerInfo:

Public Member Functions

std::string MacStr () const
 Format MacAddress as a colon-separated string.
 
bool operator== (const PeerInfo &) const =default
 Compares two PeerInfo for equality.
 

Public Attributes

std::string portId
 Peer's LLDP port ID.
 
std::string chassisId
 Peer's LLDP chassis ID.
 
std::array< std::uint8_t, macAddressLengthmacAddress {}
 Peer's MAC address.
 

Detailed Description

LLDP peer information from PDPortDataReal.

Definition at line 92 of file blocks.h.

Member Function Documentation

◆ MacStr()

std::string profinet::blocks::PeerInfo::MacStr ( ) const
inline

Format MacAddress as a colon-separated string.

Returns
The peer's MAC address as a string.

Definition at line 105 of file blocks.h.

References profinet::Mac2String(), and macAddress.

+ Here is the call graph for this function:

◆ operator==()

bool profinet::blocks::PeerInfo::operator== ( const PeerInfo ) const
default

Compares two PeerInfo for equality.

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

Member Data Documentation

◆ chassisId

std::string profinet::blocks::PeerInfo::chassisId

Peer's LLDP chassis ID.

Definition at line 98 of file blocks.h.

◆ macAddress

std::array<std::uint8_t, macAddressLength> profinet::blocks::PeerInfo::macAddress {}

Peer's MAC address.

Definition at line 101 of file blocks.h.

Referenced by MacStr().

◆ portId

std::string profinet::blocks::PeerInfo::portId

Peer's LLDP port ID.

Definition at line 95 of file blocks.h.


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