PLCnext API Documentation 25.0.2.69
StationDiagnosisItem.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/Base/Rsc/Commons/Rsc.hpp"
9#include "Arp/Base/Rsc/Commons/RscSerializable.hpp"
10#include <vector>
11
12// DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED
13
15{
16
17using namespace Arp;
18using namespace Arp::Base::Rsc::Commons;
19using namespace Arp::Base::Rsc::Commons::Services;
20
24class ARP_EXPORT StationDiagnosisItem : public RscSerializable
25{
26public: // construction/destruction
28 StationDiagnosisItem(uint8 stationAddress, uint8 masterAddress, uint16 id, boolean stationExists, boolean isStationReady, boolean hasConfigurationError, boolean hasExtendedDiagnosis, boolean notSupported, boolean isValidResponse, boolean hasParameterError, boolean hasMasterLock, boolean requiresParameterization, boolean hasStaticDiagnosis, boolean watchdogEnabled, boolean isFreezed, boolean isSynced, boolean isSlaveEnabled, const std::vector<byte>& extendedDiagnosisData);
29
30public: // Properties
34 uint8 StationAddress = 0;
35
39 uint8 MasterAddress = 0;
40
44 uint16 Id = 0;
45
49 boolean StationExists = false;
50
54 boolean IsStationReady = false;
55
59 boolean HasConfigurationError = false;
60
64 boolean HasExtendedDiagnosis = false;
65
69 boolean NotSupported = false;
70
74 boolean IsValidResponse = false;
75
79 boolean HasParameterError = false;
80
84 boolean HasMasterLock = false;
85
89 boolean RequiresParameterization = false;
90
95 boolean HasStaticDiagnosis = false;
96
100 boolean WatchdogEnabled = false;
101
105 boolean IsFreezed = false;
106
110 boolean IsSynced = false;
111
115 boolean IsSlaveEnabled = false;
116
120 std::vector<byte> ExtendedDiagnosisData;
121
122public: // Rsc operations
123 void Serialize(RscWriter& writer)const;
124 void Deserialize(RscReader& reader);
125 static size_t GetFieldCount(void);
126};
127
128} // end of namespace Arp::Io::Profibus::Services
Any custom struct type which is intended to be marshalled in a Rsc serialization context,...
Definition: RscSerializable.hpp:35
Reads marshaled data of RSC services.
Definition: RscReader.hpp:34
Writes marshalled data of RSC services.
Definition: RscWriter.hpp:34
Delivers diagnostic information of a slave
Definition: StationDiagnosisItem.hpp:25
StationDiagnosisItem(void)
Constructs an StationDiagnosisItem instance.
std::vector< byte > ExtendedDiagnosisData
Contains extended diagnosis data if 'ExtendedDiagnosis' is set
Definition: StationDiagnosisItem.hpp:120
std::uint8_t uint8
The Arp unsigned integer type of 1 byte size.
Definition: PrimitiveTypes.hpp:25
std::uint16_t uint16
The Arp unsigned integer type of 2 byte size.
Definition: PrimitiveTypes.hpp:29
Namespace for Profibus services
Root namespace for the PLCnext API