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)Parameters
| Name | Description |
|---|---|
result | Result with GemOutcome::FormattedProgramCapabilityResult. |
commandIndex | Zero-based command position. |
field | List selector: PDCOMM_GEM_FORMATTED_PROGRAM_CAPABILITY_BEFORE, ..._IMMEDIATE_BEFORE, ..._NON_BEFORE, ..._IMMEDIATE_AFTER or ..._NON_AFTER. ACDS is GemFormattedProgramCapabilityCommandInfo::after. |
index | Zero-based entry position in the selected list. |
Returns
The command number stored in the list.
Notes
- Throws
pdcomm::Error:PDCOMM_INVALID_ARGUMENTfor an unknownfield;PDCOMM_INVALID_STATEwhen the result carries no capability data;PDCOMM_OUT_OF_RANGEfor an invalid index.