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)The single ACDS value is in PdcommGemFormattedProgramCapabilityCommandInfo::after_dependency, not here.
Parameters
| Name | Description |
|---|---|
result | GEM result that holds a capability. |
command_index | Zero-based command index. |
field | Vector 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_index | Zero-based index within the vector. |
out_value | Receives 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.