10 #include "Arp/System/Nm/SpecializedPayload.hpp"
11 #include "Arp/System/NmPayload/Io/ProfinetStack/PnStationType.hpp"
15 namespace Arp {
namespace System {
namespace NmPayload {
namespace Io {
namespace ProfinetStack
24 using ArgumentsType = std::tuple<const char*, PnStationType, bool, bool>;
26 using SpecializedPayload::SpecializedPayload;
36 const String& componentName, PnStationType stationType,
bool bfLed,
bool sfLed);
51 String GetFormatstring(
bool bfLed,
bool sfLed)
const;
52 String LedStateToString(
bool state)
const;
56 const size_t indexComponentName = this->AddField<String>();
57 const size_t indexStationType = this->AddField<PnStationType>();
58 const size_t indexBfLed = this->AddField<bool>();
59 const size_t indexSfLed = this->AddField<bool>();
Payload class for state changes of PROFINET LEDs
Definition: PnStationStatePayload.hpp:21
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:24
Base class for custom Payload classes
Definition: SpecializedPayload.hpp:43
@ System
System components used by the System, Device, Plc or Io domains.
Root namespace for the PLCnext API