Skip to content
Start free evaluation

pdcomm_gem_result_formatted_program_capability_dependency_at

Function

Reads one value of a command's dependency vector.

PdcommStatus pdcomm_gem_result_formatted_program_capability_dependency_at(const PdcommGemResult *result, size_t command_index, uint32_t field, size_t dependency_index, uint16_t *out_value)

Declared in: #include <pdcomm_gem_formatted_program_capabilities.h>

The single ACDS value is in PdcommGemFormattedProgramCapabilityCommandInfo::after_dependency, not here.

Parameters

NameDescription
resultGEM result that holds a capability.
command_indexZero-based command index.
fieldVector selector: #PDCOMM_GEM_FORMATTED_PROGRAM_CAPABILITY_BEFORE, #PDCOMM_GEM_FORMATTED_PROGRAM_CAPABILITY_IMMEDIATE_BEFORE, #PDCOMM_GEM_FORMATTED_PROGRAM_CAPABILITY_NON_BEFORE, #PDCOMM_GEM_FORMATTED_PROGRAM_CAPABILITY_IMMEDIATE_AFTER, or #PDCOMM_GEM_FORMATTED_PROGRAM_CAPABILITY_NON_AFTER.
dependency_indexZero-based index within the vector.
out_valueReceives the U2 value; set to 0 first.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when out_value or result is NULL or field is unknown; #PDCOMM_INVALID_STATE when result holds no capability; #PDCOMM_OUT_OF_RANGE when command_index or dependency_index is too large.