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

IP block status flags (IEC 61158-6-10 IPBlockInfo). More...

#include <dcp.h>

+ Collaboration diagram for profinet::dcp::IPBlockInfo:

Static Public Member Functions

static std::string GetName (std::uint16_t info)
 Get the human-readable name for an IP block info value.
 
static bool HasConflict (std::uint16_t info)
 Whether an address conflict was detected.
 
static bool IsDhcp (std::uint16_t info)
 Whether the address was assigned via DHCP.
 

Static Public Attributes

static constexpr std::uint16_t IP_NOT_SET = 0x0000
 IP address not set.
 
static constexpr std::uint16_t IP_SET = 0x0001
 IP address set (statically).
 
static constexpr std::uint16_t IP_SET_BY_DHCP = 0x0002
 IP address set via DHCP.
 
static constexpr std::uint16_t IP_NOT_SET_CONFLICT = 0x0080
 IP address not set, address conflict detected.
 
static constexpr std::uint16_t IP_SET_CONFLICT = 0x0081
 IP address set (statically), address conflict detected.
 
static constexpr std::uint16_t IP_SET_BY_DHCP_CONFLICT = 0x0082
 IP address set via DHCP, address conflict detected.
 
static constexpr std::uint16_t IP_CONFLICT_BIT = 0x0080
 IP conflict bit value.
 

Detailed Description

IP block status flags (IEC 61158-6-10 IPBlockInfo).

Definition at line 226 of file dcp.h.

Member Function Documentation

◆ GetName()

std::string profinet::dcp::IPBlockInfo::GetName ( std::uint16_t  info)
static

Get the human-readable name for an IP block info value.

Parameters
infoRaw IP block info value.
Returns
A description such as "IP set by DHCP".

Definition at line 338 of file dcp.cpp.

References profinet::Hex4().

+ Here is the call graph for this function:

◆ HasConflict()

static bool profinet::dcp::IPBlockInfo::HasConflict ( std::uint16_t  info)
inlinestatic

Whether an address conflict was detected.

Parameters
infoRaw IP block info value.
Returns
True if the conflict bit (0x0080) is set.

Definition at line 259 of file dcp.h.

References IP_CONFLICT_BIT.

◆ IsDhcp()

static bool profinet::dcp::IPBlockInfo::IsDhcp ( std::uint16_t  info)
inlinestatic

Whether the address was assigned via DHCP.

Parameters
infoRaw IP block info value.
Returns
True if the DHCP bit (0x0002) is set.

Definition at line 267 of file dcp.h.

Member Data Documentation

◆ IP_CONFLICT_BIT

constexpr std::uint16_t profinet::dcp::IPBlockInfo::IP_CONFLICT_BIT = 0x0080
staticconstexpr

IP conflict bit value.

Definition at line 248 of file dcp.h.

Referenced by HasConflict().

◆ IP_NOT_SET

constexpr std::uint16_t profinet::dcp::IPBlockInfo::IP_NOT_SET = 0x0000
staticconstexpr

IP address not set.

Definition at line 230 of file dcp.h.

◆ IP_NOT_SET_CONFLICT

constexpr std::uint16_t profinet::dcp::IPBlockInfo::IP_NOT_SET_CONFLICT = 0x0080
staticconstexpr

IP address not set, address conflict detected.

Definition at line 239 of file dcp.h.

◆ IP_SET

constexpr std::uint16_t profinet::dcp::IPBlockInfo::IP_SET = 0x0001
staticconstexpr

IP address set (statically).

Definition at line 233 of file dcp.h.

◆ IP_SET_BY_DHCP

constexpr std::uint16_t profinet::dcp::IPBlockInfo::IP_SET_BY_DHCP = 0x0002
staticconstexpr

IP address set via DHCP.

Definition at line 236 of file dcp.h.

◆ IP_SET_BY_DHCP_CONFLICT

constexpr std::uint16_t profinet::dcp::IPBlockInfo::IP_SET_BY_DHCP_CONFLICT = 0x0082
staticconstexpr

IP address set via DHCP, address conflict detected.

Definition at line 245 of file dcp.h.

◆ IP_SET_CONFLICT

constexpr std::uint16_t profinet::dcp::IPBlockInfo::IP_SET_CONFLICT = 0x0081
staticconstexpr

IP address set (statically), address conflict detected.

Definition at line 242 of file dcp.h.


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