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

Implements decoding and representation of PROFINET diagnostic record data. More...

#include "profinet/diagnosis.h"
#include <algorithm>
#include <cstdio>
#include <map>
#include "profinet/wire.h"
+ Include dependency graph for diagnosis.cpp:

Go to the source code of this file.

Namespaces

namespace  profinet
 
namespace  profinet::diagnosis
 

Functions

std::string profinet::diagnosis::DecodeChannelErrorType (std::uint16_t errorType)
 Decode a ChannelErrorType to a human-readable string.
 
std::string profinet::diagnosis::DecodeExtChannelErrorType (std::uint16_t channelErrorType, std::uint16_t extErrorType)
 Decode an ExtChannelErrorType given its ChannelErrorType context.
 
DiagnosisData profinet::diagnosis::ParseDiagnosisBlock (const Bytes &data, std::uint32_t api=0, std::uint16_t slot=0, std::uint16_t subslot=0)
 Parse a full DiagnosisData block from raw bytes.
 
DiagnosisData profinet::diagnosis::ParseDiagnosisSimple (const Bytes &data, std::uint32_t api=0, std::uint16_t slot=0, std::uint16_t subslot=0)
 Parse a simple, fixed-format diagnosis block.
 

Detailed Description

Implements decoding and representation of PROFINET diagnostic record data.

Definition in file diagnosis.cpp.