10 #include "Arp/System/Nm/SpecializedPayload.hpp" 11 #include "Arp/System/NmPayload/Io/ProfinetStack/PnStationType.hpp" 14 namespace Arp {
namespace System {
namespace NmPayload {
namespace Io {
namespace ProfinetStack
22 using SpecializedPayload::SpecializedPayload;
29 const String& componentName, PnStationType stationType,
bool bfLed,
bool sfLed);
44 String GetFormatstring(
bool bfLed,
bool sfLed)
const;
45 String LedStateToString(
bool state)
const;
49 const size_t indexComponentName = this->AddField<String>();
50 const size_t indexStationType = this->AddField<PnStationType>();
51 const size_t indexBfLed = this->AddField<bool>();
52 const size_t indexSfLed = this->AddField<bool>();
PnStationType GetStationType() const
Returns the station type
bool GetSfLed() const
Returns the state of the SF LED
Base class for custom Payload classes
Definition: SpecializedPayload.hpp:42
PnStationStatePayload(const String &componentName, PnStationType stationType, bool bfLed, bool sfLed)
Constructs the payload object
String GetComponentName() const
Return the name of the sending component
Payload class for state changes of PROFINET LEDs
Definition: PnStationStatePayload.hpp:19
Root namespace for the PLCnext API
System components used by the System, Device, Plc or Io domains.
bool GetBfLed() const
Returns the state of the BF LED