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

Upload/Retrieval alarm item (USI 0x8200, 0x8201). More...

#include <alarms.h>

+ Collaboration diagram for profinet::UploadRetrievalItem:

Public Member Functions

std::string UsiName () const
 Human-readable name for this item's USI.
 
bool IsUpload () const
 Whether this is an upload record.
 
bool IsRetrieval () const
 Whether this is an iParameter retrieval record.
 

Public Attributes

Usi userStructureId = Usi::Unknown
 User Structure Identifier for this item.
 
BlockType blockType = BlockType::Unknown
 Nested block type.
 
std::uint16_t blockLength = 0
 Nested block length.
 
std::uint16_t blockVersion = 0
 Nested block version.
 
std::uint32_t urRecordIndex = 0
 Record index the upload/retrieval refers to.
 
std::uint32_t urRecordLength = 0
 Record length in bytes.
 

Detailed Description

Upload/Retrieval alarm item (USI 0x8200, 0x8201).

Per upstream alarms.py, both USI_UPLOAD and USI_IPARAMETER are parsed into this type (not into IParameterItem below, which the parser never actually produces – kept for API parity with the Python dataclass hierarchy).

Definition at line 159 of file alarms.h.

Member Function Documentation

◆ IsRetrieval()

bool profinet::UploadRetrievalItem::IsRetrieval ( ) const
inline

Whether this is an iParameter retrieval record.

Returns
True if UserStructureId is USI_IPARAMETER.

Definition at line 195 of file alarms.h.

References profinet::IParameter, and userStructureId.

◆ IsUpload()

bool profinet::UploadRetrievalItem::IsUpload ( ) const
inline

Whether this is an upload record.

Returns
True if UserStructureId is USI_UPLOAD.

Definition at line 188 of file alarms.h.

References profinet::Upload, and userStructureId.

◆ UsiName()

std::string profinet::UploadRetrievalItem::UsiName ( ) const
inline

Human-readable name for this item's USI.

Returns
The USI name (see GetUsiName()).

Definition at line 181 of file alarms.h.

References profinet::GetUsiName(), and userStructureId.

+ Here is the call graph for this function:

Member Data Documentation

◆ blockLength

std::uint16_t profinet::UploadRetrievalItem::blockLength = 0

Nested block length.

Definition at line 168 of file alarms.h.

◆ blockType

BlockType profinet::UploadRetrievalItem::blockType = BlockType::Unknown

Nested block type.

Definition at line 165 of file alarms.h.

◆ blockVersion

std::uint16_t profinet::UploadRetrievalItem::blockVersion = 0

Nested block version.

Definition at line 171 of file alarms.h.

◆ urRecordIndex

std::uint32_t profinet::UploadRetrievalItem::urRecordIndex = 0

Record index the upload/retrieval refers to.

Definition at line 174 of file alarms.h.

◆ urRecordLength

std::uint32_t profinet::UploadRetrievalItem::urRecordLength = 0

Record length in bytes.

Definition at line 177 of file alarms.h.

◆ userStructureId

Usi profinet::UploadRetrievalItem::userStructureId = Usi::Unknown

User Structure Identifier for this item.

Definition at line 162 of file alarms.h.

Referenced by IsRetrieval(), IsUpload(), and UsiName().


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