PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
profinet::PNAlarmAckPDU Struct Reference

AlarmAck-PDU: acknowledges receipt of an AlarmNotification-PDU. More...

#include <protocol.h>

+ Collaboration diagram for profinet::PNAlarmAckPDU:

Public Member Functions

Bytes ToBytes () const
 Serialize this PDU back to raw bytes.
 

Public Attributes

std::array< std::uint8_t, blockHeaderLength > blockHeader {}
 Nested 6-byte block header.
 
AlarmType alarmType
 Alarm type being acknowledged.
 
std::uint32_t api = 0
 API number.
 
std::uint16_t slotNumber = 0
 Slot number being acknowledged.
 
std::uint16_t subslotNumber = 0
 Subslot number being acknowledged.
 
std::uint16_t alarmSpecifier = 0
 Alarm specifier flags echoed from the notification.
 
std::uint32_t statusPNIO = 0
 PNIO status code (0 = acknowledged OK).
 

Static Public Attributes

static constexpr std::size_t kSize = 22
 Size in bytes of this PDU.
 

Detailed Description

AlarmAck-PDU: acknowledges receipt of an AlarmNotification-PDU.

Definition at line 2346 of file protocol.h.

Member Function Documentation

◆ ToBytes()

Bytes profinet::PNAlarmAckPDU::ToBytes ( ) const
inline

Serialize this PDU back to raw bytes.

Returns
The encoded bytes.

Definition at line 2374 of file protocol.h.

References alarmSpecifier, alarmType, api, blockHeader, profinet::wire::PutFixed(), profinet::wire::PutU16(), profinet::wire::PutU32(), slotNumber, statusPNIO, and subslotNumber.

Referenced by profinet::AlarmListener::SendAck(), and TEST_F().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ alarmSpecifier

std::uint16_t profinet::PNAlarmAckPDU::alarmSpecifier = 0

Alarm specifier flags echoed from the notification.

Definition at line 2364 of file protocol.h.

Referenced by profinet::AlarmListener::SendAck(), and ToBytes().

◆ alarmType

AlarmType profinet::PNAlarmAckPDU::alarmType

Alarm type being acknowledged.

Definition at line 2352 of file protocol.h.

Referenced by profinet::AlarmListener::SendAck(), and ToBytes().

◆ api

std::uint32_t profinet::PNAlarmAckPDU::api = 0

API number.

Definition at line 2355 of file protocol.h.

Referenced by profinet::AlarmListener::SendAck(), and ToBytes().

◆ blockHeader

std::array<std::uint8_t, blockHeaderLength> profinet::PNAlarmAckPDU::blockHeader {}

Nested 6-byte block header.

Definition at line 2349 of file protocol.h.

Referenced by profinet::AlarmListener::SendAck(), and ToBytes().

◆ kSize

constexpr std::size_t profinet::PNAlarmAckPDU::kSize = 22
staticconstexpr

Size in bytes of this PDU.

Definition at line 2370 of file protocol.h.

Referenced by profinet::AlarmListener::SendAck(), profinet::TEST_F(), and TEST_F().

◆ slotNumber

std::uint16_t profinet::PNAlarmAckPDU::slotNumber = 0

Slot number being acknowledged.

Definition at line 2358 of file protocol.h.

Referenced by profinet::AlarmListener::SendAck(), and ToBytes().

◆ statusPNIO

std::uint32_t profinet::PNAlarmAckPDU::statusPNIO = 0

PNIO status code (0 = acknowledged OK).

Definition at line 2367 of file protocol.h.

Referenced by profinet::AlarmListener::SendAck(), and ToBytes().

◆ subslotNumber

std::uint16_t profinet::PNAlarmAckPDU::subslotNumber = 0

Subslot number being acknowledged.

Definition at line 2361 of file protocol.h.

Referenced by profinet::AlarmListener::SendAck(), and ToBytes().


The documentation for this struct was generated from the following file: