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

DCP GET/SET response codes. More...

#include <dcp.h>

+ Collaboration diagram for profinet::dcp::DCPResponseCode:

Static Public Member Functions

static std::string GetName (std::uint8_t code)
 Get the human-readable name for a response code.
 

Static Public Attributes

static constexpr std::uint8_t NO_ERROR = 0x00
 No error.
 
static constexpr std::uint8_t OPTION_NOT_SUPPORTED = 0x01
 The requested option is not supported.
 
static constexpr std::uint8_t SUBOPTION_NOT_SUPPORTED = 0x02
 The requested suboption is not supported or has no data set.
 
static constexpr std::uint8_t SUBOPTION_NOT_SET = 0x03
 The requested suboption is not set.
 
static constexpr std::uint8_t RESOURCE_ERROR = 0x04
 A resource error occurred.
 
static constexpr std::uint8_t SET_NOT_POSSIBLE = 0x05
 The SET operation is not currently possible.
 
static constexpr std::uint8_t IN_OPERATION_SET_NOT_POSSIBLE = 0x06
 The SET operation is not possible while the device is in operation.
 

Detailed Description

DCP GET/SET response codes.

Definition at line 334 of file dcp.h.

Member Function Documentation

◆ GetName()

std::string profinet::dcp::DCPResponseCode::GetName ( std::uint8_t  code)
static

Get the human-readable name for a response code.

Parameters
codeRaw response code.
Returns
A description of the code.

Definition at line 407 of file dcp.cpp.

References profinet::Hex2().

+ Here is the call graph for this function:

Member Data Documentation

◆ IN_OPERATION_SET_NOT_POSSIBLE

constexpr std::uint8_t profinet::dcp::DCPResponseCode::IN_OPERATION_SET_NOT_POSSIBLE = 0x06
staticconstexpr

The SET operation is not possible while the device is in operation.

Definition at line 356 of file dcp.h.

◆ NO_ERROR

constexpr std::uint8_t profinet::dcp::DCPResponseCode::NO_ERROR = 0x00
staticconstexpr

No error.

Definition at line 338 of file dcp.h.

◆ OPTION_NOT_SUPPORTED

constexpr std::uint8_t profinet::dcp::DCPResponseCode::OPTION_NOT_SUPPORTED = 0x01
staticconstexpr

The requested option is not supported.

Definition at line 341 of file dcp.h.

◆ RESOURCE_ERROR

constexpr std::uint8_t profinet::dcp::DCPResponseCode::RESOURCE_ERROR = 0x04
staticconstexpr

A resource error occurred.

Definition at line 350 of file dcp.h.

◆ SET_NOT_POSSIBLE

constexpr std::uint8_t profinet::dcp::DCPResponseCode::SET_NOT_POSSIBLE = 0x05
staticconstexpr

The SET operation is not currently possible.

Definition at line 353 of file dcp.h.

◆ SUBOPTION_NOT_SET

constexpr std::uint8_t profinet::dcp::DCPResponseCode::SUBOPTION_NOT_SET = 0x03
staticconstexpr

The requested suboption is not set.

Definition at line 347 of file dcp.h.

◆ SUBOPTION_NOT_SUPPORTED

constexpr std::uint8_t profinet::dcp::DCPResponseCode::SUBOPTION_NOT_SUPPORTED = 0x02
staticconstexpr

The requested suboption is not supported or has no data set.

Definition at line 344 of file dcp.h.


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