PLCnext API Documentation 25.9.0.13
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Arp::Io::ProfinetStack::System::Services::StationAddress Class Reference

Contains parameter to address and set a station network address. More...

#include <StationAddress.hpp>

Inheritance diagram for Arp::Io::ProfinetStack::System::Services::StationAddress:
Inheritance graph

Public Member Functions

 StationAddress (void)
 Constructs an StationAddress instance.
 
 StationAddress (const RscString< 40 > &ipAddress, const RscString< 16 > &subnetMask, const RscString< 16 > &defaultGateway, const RscString< 18 > &macAddress)
 Constructs an StationAddress instance.
 
void Serialize (RscWriter &writer) const
 Serializes the datatype. All fields of the datatype have to be serialized in use of RscWriter. More...
 
void Deserialize (RscReader &reader)
 Deserializes the datatype. All fields of the datatype have to be deserialized in use of RscReader. More...
 
void Serialize (JRscWriter &writer) const
 Serializes the datatype. All fields of the datatype have to be serialized in use of JRscWriter. More...
 
void Deserialize (JRscReader &reader)
 Deserializes the datatype. All fields of the datatype have to be deserialized in use of JRscReader. More...
 
- Public Member Functions inherited from Arp::Base::Rsc::Commons::RscSerializable
 RscSerializable (void)=default
 The default constructor.
 

Static Public Member Functions

static size_t GetFieldCount (void)
 Returns the count of fields More...
 

Public Attributes

RscString< 40 > IpAddress
 IP address that shall be assigned to a station.
 
RscString< 16 > SubnetMask
 Subnet mask that shall be assigned to a station.
 
RscString< 16 > DefaultGateway
 Default gateway that shall be assigned to a station.
 
RscString< 18 > MacAddress
 MAC address of the station. More...
 

Detailed Description

Contains parameter to address and set a station network address.

If IpAddress, SubnetMask or DefaultGateway are not set, the value will be set to '0.0.0.0'.

Member Function Documentation

◆ Deserialize() [1/2]

void Arp::Io::ProfinetStack::System::Services::StationAddress::Deserialize ( JRscReader &  reader)

Deserializes the datatype. All fields of the datatype have to be deserialized in use of JRscReader.

Parameters
readerReference to RscReader.

◆ Deserialize() [2/2]

void Arp::Io::ProfinetStack::System::Services::StationAddress::Deserialize ( RscReader reader)

Deserializes the datatype. All fields of the datatype have to be deserialized in use of RscReader.

Parameters
readerReference to RscReader.

◆ GetFieldCount()

size_t Arp::Io::ProfinetStack::System::Services::StationAddress::GetFieldCount ( void  )
static

Returns the count of fields

Returns
Count of fields.

The field count is used for serialization via Rsc

◆ Serialize() [1/2]

void Arp::Io::ProfinetStack::System::Services::StationAddress::Serialize ( JRscWriter &  writer) const

Serializes the datatype. All fields of the datatype have to be serialized in use of JRscWriter.

Parameters
writerReference to RscWriter

◆ Serialize() [2/2]

void Arp::Io::ProfinetStack::System::Services::StationAddress::Serialize ( RscWriter writer) const

Serializes the datatype. All fields of the datatype have to be serialized in use of RscWriter.

Parameters
writerReference to RscWriter

Member Data Documentation

◆ MacAddress

RscString<18> Arp::Io::ProfinetStack::System::Services::StationAddress::MacAddress

MAC address of the station.

The MAC address consists of 6 values that are separated by a ':'.


The documentation for this class was generated from the following files: