PLCnext API Documentation 23.6.0.37
StandardDiagnosisInformation.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8#include "Arp/Io/ProfinetStack/Controller/Services/ChannelQualifier.hpp"
9#include "Arp/System/Rsc/Services/IRscSerializable.hpp"
10#include "Arp/System/Rsc/Services/RscReader.hpp"
11#include "Arp/System/Rsc/Services/RscWriter.hpp"
12
13// DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED
14
15namespace Arp { namespace Io { namespace ProfinetStack { namespace Controller { namespace Services
16{
17
18using namespace Arp;
19using namespace Arp::System::Rsc::Services;
20
25{
26public:
31
36
42
48
49 void Serialize(RscWriter& writer)const override
50 {
51 writer.Write(this->Severity);
52 writer.Write(this->ChannelErrorType);
53 writer.Write(this->ExtChannelErrorType);
54 writer.Write(this->ExtChannelAddValue);
55 }
56
57 void Deserialize(RscReader& reader)override
58 {
59 reader.Read(this->Severity);
60 reader.Read(this->ChannelErrorType);
61 reader.Read(this->ExtChannelErrorType);
62 reader.Read(this->ExtChannelAddValue);
63 }
64
65 static constexpr size_t GetFieldCount(void)
66 {
67 return 4;
68 }
69};
70
71}}}}} // end of namespace Arp::Io::ProfinetStack::Controller::Services
Contains diagnosis information in standard format.
Definition: StandardDiagnosisInformation.hpp:25
ChannelQualifier Severity
Expresses the severity of the diagnosis
Definition: StandardDiagnosisInformation.hpp:30
uint32 ExtChannelAddValue
Contains additional information about the diagnosis according to Arp.Io.ProfinetStack....
Definition: StandardDiagnosisInformation.hpp:47
uint16 ChannelErrorType
Expresses the type of diagnosis
Definition: StandardDiagnosisInformation.hpp:35
uint16 ExtChannelErrorType
Expresses the subtype of diagnosis. Vales are dependend to Arp.Io.ProfinetStack.Controller....
Definition: StandardDiagnosisInformation.hpp:41
void Deserialize(RscReader &reader) override
Deserializes the datatype. All fields of the datatype have to be deserialized in use of RscReader.
Definition: StandardDiagnosisInformation.hpp:57
void Serialize(RscWriter &writer) const override
Serializes the datatype. All fields of the datatype have to be serialized in use of RscWriter.
Definition: StandardDiagnosisInformation.hpp:49
Marshalls structure or class data types. Serialize and Deserialize have to marshal fields in the same...
Definition: IRscSerializable.hpp:20
Reads data from Rsc
Definition: RscReader.hpp:27
T Read(void)
Reads an element of T from Rsc. With data tagging enabled RscType of T is validated.
Definition: RscReader.hpp:166
Writes data to Rsc.
Definition: RscWriter.hpp:32
void Write(const T &value)
Writes an element of T from Rsc. Datatag and format is determined deducted by type of T.
Definition: RscWriter.hpp:178
std::uint32_t uint32
The Arp unsigned integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:36
std::uint16_t uint16
The Arp unsigned integer type of 2 byte size.
Definition: PrimitiveTypes.hpp:32
ChannelQualifier
Describes diagnosis severity.
Definition: ChannelQualifier.hpp:19
Namespace for classes and interfaces for the Remote Service Call implementation
Root namespace for the PLCnext API