PLCnext API Documentation 23.6.0.37
INetloadLimiterService.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6#pragma once
8#include "Arp/Hardware/Nim/Services/NetloadLimiterErrorCode.hpp"
9#include "Arp/Hardware/Nim/Services/NetloadLimiterServiceProxyFactory.hpp"
10#include "Arp/Hardware/Nim/Services/NetloadLimiterSettings.hpp"
11#include "Arp/Hardware/Nim/Services/NetloadLimiterState.hpp"
12#include "Arp/System/Rsc/Services/IRscService.hpp"
13
14// DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED BY INetloadLimiterService.cs
15
16namespace Arp { namespace Hardware { namespace Nim { namespace Services
17{
18
19using namespace Arp;
20using namespace Arp::System::Rsc::Services;
21
30{
31public: // typedefs
32 using Ptr = std::shared_ptr<INetloadLimiterService>;
33
34public: // construction/destruction
36 INetloadLimiterService(void) = default;
37
38public: // static policy operation
39 static IRscServiceProxyFactory& GetProxyFactory(void);
40
41public: // abstract operations
48 virtual NetloadLimiterErrorCode GetSettings(uint8 networkInterface, NetloadLimiterSettings& settings) = 0;
49
56 virtual NetloadLimiterErrorCode SetSettings(uint8 networkInterface, const NetloadLimiterSettings& settings) = 0;
57
64 virtual NetloadLimiterErrorCode SetByteLimit(uint8 networkInterface, uint32 limit) = 0;
65
72 virtual NetloadLimiterErrorCode SetPacketLimit(uint8 networkInterface, uint16 limit) = 0;
73
79 virtual NetloadLimiterErrorCode EnableByteLimiter(uint8 networkInterface) = 0;
80
86 virtual NetloadLimiterErrorCode DisableByteLimiter(uint8 networkInterface) = 0;
87
93 virtual NetloadLimiterErrorCode EnablePacketLimiter(uint8 networkInterface) = 0;
94
101
108 virtual NetloadLimiterErrorCode GetState(uint8 networkInterface, NetloadLimiterState& state) = 0;
109};
110
112// inline methods of class INetloadLimiterService
113inline IRscServiceProxyFactory& INetloadLimiterService::GetProxyFactory()
114{
115 return NetloadLimiterServiceProxyFactory::GetInstance();
116}
117
118}}}} // end of namespace Arp::Hardware::Nim::Services
This Services controls the NetloadLimiter
Definition: INetloadLimiterService.hpp:30
INetloadLimiterService(void)=default
Constructs an INetloadLimiterService instance.
virtual NetloadLimiterErrorCode GetSettings(uint8 networkInterface, NetloadLimiterSettings &settings)=0
Gets the current settings for the selected network interface.
virtual NetloadLimiterErrorCode SetByteLimit(uint8 networkInterface, uint32 limit)=0
Sets new byte limit for the selected network interface.
virtual NetloadLimiterErrorCode GetState(uint8 networkInterface, NetloadLimiterState &state)=0
Gets the current state of the selected network interface.
virtual NetloadLimiterErrorCode SetSettings(uint8 networkInterface, const NetloadLimiterSettings &settings)=0
Sets settings for selected network interface.
virtual NetloadLimiterErrorCode EnableByteLimiter(uint8 networkInterface)=0
Enables the byte limiter for the selected network interface.
virtual NetloadLimiterErrorCode EnablePacketLimiter(uint8 networkInterface)=0
Enables the packet limiter for the selected network interface.
virtual NetloadLimiterErrorCode DisablePacketLimiter(uint8 networkInterface)=0
Disables the packet limiter for the selected network interface.
virtual NetloadLimiterErrorCode SetPacketLimit(uint8 networkInterface, uint16 limit)=0
Sets new packet limit for the selected network interface.
virtual NetloadLimiterErrorCode DisableByteLimiter(uint8 networkInterface)=0
Disables the byte limiter for the selected network interface.
This struct contains all settings of the netload limiter. It is used to set and get the current setti...
Definition: NetloadLimiterSettings.hpp:24
This struct contains the current state of the network limiter for one network interface.
Definition: NetloadLimiterState.hpp:24
Base interface for all Rsc service interface.
Definition: IRscService.hpp:20
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
std::uint8_t uint8
The Arp unsigned integer type of 1 byte size.
Definition: PrimitiveTypes.hpp:28
NetloadLimiterErrorCode
This enum contains the error codes for the operations of the netload limiter services.
Definition: NetloadLimiterErrorCode.hpp:19
Namespace for classes and interfaces for the Remote Service Call implementation
Root namespace for the PLCnext API