|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
Diagnosis alarm item. More...
#include <alarms.h>
Collaboration diagram for profinet::DiagnosisItem:Public Member Functions | |
| std::string | UsiName () const |
| Human-readable name for this item's USI. | |
| std::uint16_t | ChannelNumberValue () const |
| Channel number with the accumulative bit masked off. | |
| bool | IsAccumulative () const |
| Whether this diagnosis is accumulative (bit 15 of ChannelNumber). | |
| std::uint8_t | ChannelTypeValue () const |
| Channel type extracted from ChannelProperties. | |
| bool | IsExtended () const |
| Whether this is the Ext or Qualified variant. | |
| bool | IsQualified () const |
| Whether this is the Qualified variant. | |
Public Attributes | |
| Usi | userStructureId = Usi::Unknown |
| User Structure Identifier for this item. | |
| std::uint16_t | channelNumber = 0 |
| Channel number, with the accumulative bit packed into bit 15. | |
| std::uint16_t | channelProperties = 0 |
| Channel properties bitfield (type, direction, specifier, maintenance flags). | |
| std::uint16_t | channelErrorType = 0 |
| Channel error type code. | |
| std::uint16_t | extChannelErrorType = 0 |
| Extended channel error type code (Ext/Qualified variants only). | |
| std::uint32_t | extChannelAddValue = 0 |
| Extended channel additional value (Ext/Qualified variants only). | |
| std::uint32_t | qualifiedChannelQualifier = 0 |
| Qualifier bitmask (Qualified variant only). | |
Diagnosis alarm item.
Covers USI 0x8000 ChannelDiagnosis, 0x8002 ExtChannelDiagnosis, and 0x8003 QualifiedChannelDiagnosis.
|
inline |
Channel number with the accumulative bit masked off.
Definition at line 80 of file alarms.h.
References profinet::Bit0till14OfChannelNumber, and channelNumber.
|
inline |
Channel type extracted from ChannelProperties.
Definition at line 94 of file alarms.h.
References channelProperties, and profinet::LowByteMask.
|
inline |
Whether this diagnosis is accumulative (bit 15 of ChannelNumber).
Definition at line 87 of file alarms.h.
References profinet::Bit15OfChannelNumber, and channelNumber.
|
inline |
Whether this is the Ext or Qualified variant.
Definition at line 101 of file alarms.h.
References profinet::ExtendedChannelDiagnosis, profinet::QualifiedChannelDiagnosis, and userStructureId.
|
inline |
Whether this is the Qualified variant.
Definition at line 108 of file alarms.h.
References profinet::QualifiedChannelDiagnosis, and userStructureId.
|
inline |
Human-readable name for this item's USI.
Definition at line 73 of file alarms.h.
References profinet::GetUsiName(), and userStructureId.
Here is the call graph for this function:| std::uint16_t profinet::DiagnosisItem::channelErrorType = 0 |
| std::uint16_t profinet::DiagnosisItem::channelNumber = 0 |
Channel number, with the accumulative bit packed into bit 15.
Definition at line 54 of file alarms.h.
Referenced by ChannelNumberValue(), and IsAccumulative().
| std::uint16_t profinet::DiagnosisItem::channelProperties = 0 |
Channel properties bitfield (type, direction, specifier, maintenance flags).
Definition at line 57 of file alarms.h.
Referenced by ChannelTypeValue().
| std::uint32_t profinet::DiagnosisItem::extChannelAddValue = 0 |
| std::uint16_t profinet::DiagnosisItem::extChannelErrorType = 0 |
| std::uint32_t profinet::DiagnosisItem::qualifiedChannelQualifier = 0 |
| Usi profinet::DiagnosisItem::userStructureId = Usi::Unknown |
User Structure Identifier for this item.
Definition at line 51 of file alarms.h.
Referenced by IsExtended(), IsQualified(), and UsiName().