Skip to content
Start free evaluation

pdcomm::formattedProgramCapabilityDependency

Function

Returns one entry of a dependency list of one command of a received S7F22.

inline uint16_t formattedProgramCapabilityDependency(const GemResult &result, size_t commandIndex, uint32_t field, size_t index)

Declared in: #include <pdcomm_gem_formatted_program_capabilities.hpp>

Parameters

NameDescription
resultResult with GemOutcome::FormattedProgramCapabilityResult.
commandIndexZero-based command position.
fieldList selector: PDCOMM_GEM_FORMATTED_PROGRAM_CAPABILITY_BEFORE, ..._IMMEDIATE_BEFORE, ..._NON_BEFORE, ..._IMMEDIATE_AFTER or ..._NON_AFTER. ACDS is GemFormattedProgramCapabilityCommandInfo::after.
indexZero-based entry position in the selected list.

Returns

The command number stored in the list.

Notes

  • Throws pdcomm::Error: PDCOMM_INVALID_ARGUMENT for an unknown field; PDCOMM_INVALID_STATE when the result carries no capability data; PDCOMM_OUT_OF_RANGE for an invalid index.