PLCnext API Documentation 25.0.2.69
Module.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/JRsc/Commons/JRsc.hpp"
10#include "Arp/Base/Rsc/Commons/RscSerializable.hpp"
11#include <vector>
12#include "Arp/Io/ProfinetStack/Controller/Services/Submodule.hpp"
13
14// DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED
15
17{
18
19using namespace Arp;
20using namespace Arp::Base::Rsc::Commons;
21using namespace Arp::Base::Rsc::Commons::Services;
22using namespace Arp::Base::JRsc::Commons;
23
27class ARP_EXPORT Module : public RscSerializable
28{
29public: // construction/destruction
30 Module(void);
31 Module(uint16 slot, uint32 identNumber, const std::vector<Submodule>& submodules);
32
33public: // Properties
37 uint16 Slot = 0;
38
42 uint32 IdentNumber = 0;
43
47 std::vector<Submodule> Submodules;
48
49public: // Rsc operations
50 void Serialize(RscWriter& writer)const;
51 void Deserialize(RscReader& reader);
52 void Serialize(JRscWriter& writer)const;
53 void Deserialize(JRscReader& reader);
54 static size_t GetFieldCount(void);
55};
56
57} // end of namespace Arp::Io::ProfinetStack::Controller::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
Module data
Definition: Module.hpp:28
Module(void)
Constructs an Module instance.
std::vector< Submodule > Submodules
Configured submodules
Definition: Module.hpp:47
std::uint32_t uint32
The Arp unsigned integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:33
std::uint16_t uint16
The Arp unsigned integer type of 2 byte size.
Definition: PrimitiveTypes.hpp:29
Namespace for the JSON RSC extension
Namespace for Profinet I/O controller services
Root namespace for the PLCnext API