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"
16namespace Arp {
namespace Hardware {
namespace Nim {
namespace Services
32 using Ptr = std::shared_ptr<INetloadLimiterService>;
39 static IRscServiceProxyFactory& GetProxyFactory(
void);
113inline IRscServiceProxyFactory& INetloadLimiterService::GetProxyFactory()
115 return NetloadLimiterServiceProxyFactory::GetInstance();
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