PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
test_alarmNotification.cpp File Reference

Unit tests for PROFINET AlarmNotification decoding. More...

#include <gtest/gtest.h>
#include <cstdint>
#include "profinet/alarms.h"
+ Include dependency graph for test_alarmNotification.cpp:

Go to the source code of this file.

Namespaces

namespace  profinet
 

Functions

 profinet::TEST_F (AlarmNotificationTest, ItemLessAlarmIsAccepted)
 
 profinet::TEST_F (AlarmNotificationTest, ChannelDiagnosisItemIsDecoded)
 
 profinet::TEST_F (AlarmNotificationTest, EthernetPaddingIsNotParsedAsItems)
 
 profinet::TEST_F (AlarmNotificationTest, ArDiagnosisIsBit14)
 
 profinet::TEST_F (AlarmNotificationTest, ReservedBit15IsNotArDiagnosis)
 

Detailed Description

Unit tests for PROFINET AlarmNotification decoding.

Verifies the IEC 61158-6-10 AlarmNotification body layout and alarm item parsing.

The AlarmNotification body is 20 bytes:

AlarmType 2 bytes API 4 bytes Slot 2 bytes Subslot 2 bytes ModuleIdent 4 bytes SubmoduleIdent 4 bytes AlarmSpecifier 2 bytes

Ethernet minimum-frame padding must not be interpreted as alarm items.

Definition in file test_alarmNotification.cpp.