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

Slot/subslot discovered from a device. More...

#include <blocks.h>

+ Collaboration diagram for profinet::blocks::SlotInfo:

Public Member Functions

std::string ToString () const
 Human-readable summary of this slot.
 
bool operator== (const SlotInfo &) const =default
 Compares two SlotInfo for equality.
 

Public Attributes

std::uint16_t slot = 0
 Slot number.
 
std::uint16_t subslot = 0
 Subslot number.
 
std::uint32_t api = 0
 API number.
 
std::uint32_t moduleIdent = 0
 Module ident number.
 
std::uint32_t submoduleIdent = 0
 Submodule ident number.
 
std::vector< std::string > blocks
 Names of nested blocks found for this slot (e.g. "PDPortDataReal").
 

Detailed Description

Slot/subslot discovered from a device.

Definition at line 59 of file blocks.h.

Member Function Documentation

◆ operator==()

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

Compares two SlotInfo for equality.

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

◆ ToString()

std::string profinet::blocks::SlotInfo::ToString ( ) const

Human-readable summary of this slot.

Returns
A string like "SlotInfo(api=0, slot=1, subslot=0x0001)".

Definition at line 76 of file blocks.cpp.

References api, slot, and subslot.

Member Data Documentation

◆ api

std::uint32_t profinet::blocks::SlotInfo::api = 0

API number.

Definition at line 68 of file blocks.h.

Referenced by profinet::blocks::ParsePdRealData(), and ToString().

◆ blocks

std::vector<std::string> profinet::blocks::SlotInfo::blocks

Names of nested blocks found for this slot (e.g. "PDPortDataReal").

Definition at line 77 of file blocks.h.

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

◆ moduleIdent

std::uint32_t profinet::blocks::SlotInfo::moduleIdent = 0

Module ident number.

Definition at line 71 of file blocks.h.

◆ slot

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

Slot number.

Definition at line 62 of file blocks.h.

Referenced by profinet::blocks::ParsePdRealData(), and ToString().

◆ submoduleIdent

std::uint32_t profinet::blocks::SlotInfo::submoduleIdent = 0

Submodule ident number.

Definition at line 74 of file blocks.h.

◆ subslot

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

Subslot number.

Definition at line 65 of file blocks.h.

Referenced by profinet::blocks::ParsePdRealData(), and ToString().


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