|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
Interface information from PDInterfaceDataReal (0x0240). More...
#include <blocks.h>
Collaboration diagram for profinet::blocks::InterfaceInfo:Public Member Functions | |
| std::string | MacStr () const |
| Format MacAddress as a colon-separated string. | |
| std::string | IpStr () const |
| Format IpAddress as a dotted string. | |
| std::string | SubnetStr () const |
| Format SubnetMask as a dotted string. | |
| std::string | GatewayStr () const |
| Format Gateway as a dotted string. | |
| bool | operator== (const InterfaceInfo &) const =default |
| Compares two InterfaceInfo for equality. | |
Public Attributes | |
| std::string | chassisId |
| LLDP chassis ID. | |
| std::array< std::uint8_t, macAddressLength > | macAddress {} |
| Interface MAC address. | |
| std::array< std::uint8_t, 4 > | ipAddress {} |
| Interface IPv4 address. | |
| std::array< std::uint8_t, 4 > | subnetMask {} |
| Interface IPv4 subnet mask. | |
| std::array< std::uint8_t, 4 > | gateway {} |
| Interface IPv4 default gateway. | |
|
inline |
Format Gateway as a dotted string.
Definition at line 207 of file blocks.h.
References gateway, and profinet::String2Ip().
Here is the call graph for this function:
|
inline |
Format IpAddress as a dotted string.
Definition at line 193 of file blocks.h.
References ipAddress, and profinet::String2Ip().
Here is the call graph for this function:
|
inline |
Format MacAddress as a colon-separated string.
Definition at line 186 of file blocks.h.
References profinet::Mac2String(), and macAddress.
Here is the call graph for this function:
|
default |
Compares two InterfaceInfo for equality.
Two InterfaceInfo are equal when all scalar configuration fields are equal.
|
inline |
Format SubnetMask as a dotted string.
Definition at line 200 of file blocks.h.
References profinet::String2Ip(), and subnetMask.
Here is the call graph for this function:| std::string profinet::blocks::InterfaceInfo::chassisId |
LLDP chassis ID.
Definition at line 170 of file blocks.h.
Referenced by profinet::blocks::ParsePdInterfaceDataReal().
| std::array<std::uint8_t, 4> profinet::blocks::InterfaceInfo::gateway {} |
Interface IPv4 default gateway.
Definition at line 182 of file blocks.h.
Referenced by GatewayStr(), and profinet::blocks::ParsePdInterfaceDataReal().
| std::array<std::uint8_t, 4> profinet::blocks::InterfaceInfo::ipAddress {} |
Interface IPv4 address.
Definition at line 176 of file blocks.h.
Referenced by IpStr(), and profinet::blocks::ParsePdInterfaceDataReal().
| std::array<std::uint8_t, macAddressLength> profinet::blocks::InterfaceInfo::macAddress {} |
Interface MAC address.
Definition at line 173 of file blocks.h.
Referenced by MacStr(), and profinet::blocks::ParsePdInterfaceDataReal().
| std::array<std::uint8_t, 4> profinet::blocks::InterfaceInfo::subnetMask {} |
Interface IPv4 subnet mask.
Definition at line 179 of file blocks.h.
Referenced by profinet::blocks::ParsePdInterfaceDataReal(), and SubnetStr().