11#include "Arp/System/Nm/SpecializedPayload.hpp"
12#include "Arp/System/NmPayload/Io/ProfinetStack/PnStationType.hpp"
16namespace Arp {
namespace System {
namespace NmPayload {
namespace Io {
namespace ProfinetStack
25 using ArgumentsType = std::tuple<const char*, PnStationType, bool, bool>;
27 using SpecializedPayload::SpecializedPayload;
37 const String& componentName, PnStationType stationType,
bool bfLed,
bool sfLed);
52 String GetFormatstring(
bool bfLed,
bool sfLed)
const;
53 String LedStateToString(
bool state)
const;
57 const size_t indexComponentName = this->AddField<String>();
58 const size_t indexStationType = this->AddField<PnStationType>();
59 const size_t indexBfLed = this->AddField<bool>();
60 const size_t indexSfLed = this->AddField<bool>();
Payload class for state changes of PROFINET LEDs
Definition: PnStationStatePayload.hpp:22
bool GetSfLed() const
Returns the state of the SF LED
String GetComponentName() const
Return the name of the sending component
PnStationStatePayload(const ArgumentsType &args)
Constructs the payload object
bool GetBfLed() const
Returns the state of the BF LED
PnStationStatePayload(const String &componentName, PnStationType stationType, bool bfLed, bool sfLed)
Constructs the payload object
PnStationType GetStationType() const
Returns the station type
std::tuple< const char *, PnStationType, bool, bool > ArgumentsType
ArgumentsType to be used with NonBlockingNotificationRegistration3
Definition: PnStationStatePayload.hpp:25
Base class for custom Payload classes
Definition: SpecializedPayload.hpp:44
@ System
System components used by the System, Device, Plc or Io domains.
Root namespace for the PLCnext API