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

Port information from PDPortDataReal (0x020F). More...

#include <blocks.h>

+ Collaboration diagram for profinet::blocks::PortInfo:

Public Member Functions

std::string MauTypeName () const
 Human-readable name for MauType.
 
std::string LinkState () const
 Human-readable name for LinkStateLink.
 
bool operator== (const PortInfo &) const =default
 Compares two PortInfo for equality.
 

Public Attributes

std::uint16_t slot = 0
 Slot number.
 
std::uint16_t subslot = 0
 Subslot number.
 
std::string portId
 LLDP port ID.
 
std::uint16_t mauType = 0
 MAU type (media attachment unit) code.
 
std::uint8_t linkStatePort = 0
 Port-level link state.
 
std::uint8_t linkStateLink = 0
 Link-level link state.
 
std::uint32_t mediaType = 0
 Media type code.
 
std::vector< PeerInfopeers
 LLDP peers discovered on this port.
 
std::uint32_t domainBoundary = 0
 Domain boundary flags.
 
std::uint32_t multicastBoundary = 0
 Multicast boundary flags.
 

Detailed Description

Port information from PDPortDataReal (0x020F).

Definition at line 118 of file blocks.h.

Member Function Documentation

◆ LinkState()

std::string profinet::blocks::PortInfo::LinkState ( ) const

Human-readable name for LinkStateLink.

Returns
One of "Up", "Down", "Testing", "Unknown".

Definition at line 92 of file blocks.cpp.

References linkStateLink.

◆ MauTypeName()

std::string profinet::blocks::PortInfo::MauTypeName ( ) const

Human-readable name for MauType.

Returns
A name such as "100BASE-TX FD".

Definition at line 82 of file blocks.cpp.

References mauType.

◆ operator==()

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

Compares two PortInfo for equality.

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

Member Data Documentation

◆ domainBoundary

std::uint32_t profinet::blocks::PortInfo::domainBoundary = 0

Domain boundary flags.

Definition at line 145 of file blocks.h.

◆ linkStateLink

std::uint8_t profinet::blocks::PortInfo::linkStateLink = 0

Link-level link state.

Definition at line 136 of file blocks.h.

Referenced by LinkState().

◆ linkStatePort

std::uint8_t profinet::blocks::PortInfo::linkStatePort = 0

Port-level link state.

Definition at line 133 of file blocks.h.

◆ mauType

std::uint16_t profinet::blocks::PortInfo::mauType = 0

MAU type (media attachment unit) code.

Definition at line 130 of file blocks.h.

Referenced by MauTypeName().

◆ mediaType

std::uint32_t profinet::blocks::PortInfo::mediaType = 0

Media type code.

Definition at line 139 of file blocks.h.

◆ multicastBoundary

std::uint32_t profinet::blocks::PortInfo::multicastBoundary = 0

Multicast boundary flags.

Definition at line 148 of file blocks.h.

◆ peers

std::vector<PeerInfo> profinet::blocks::PortInfo::peers

LLDP peers discovered on this port.

Definition at line 142 of file blocks.h.

◆ portId

std::string profinet::blocks::PortInfo::portId

LLDP port ID.

Definition at line 127 of file blocks.h.

◆ slot

std::uint16_t profinet::blocks::PortInfo::slot = 0

Slot number.

Definition at line 121 of file blocks.h.

Referenced by profinet::blocks::ParsePdPortDataReal().

◆ subslot

std::uint16_t profinet::blocks::PortInfo::subslot = 0

Subslot number.

Definition at line 124 of file blocks.h.


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