Skip to content
Start free evaluation

pdcomm_gem_result_formatted_program_capability_command_info

Function

Reads the fixed-size fields of one capability command.

PdcommStatus pdcomm_gem_result_formatted_program_capability_command_info(const PdcommGemResult *result, size_t index, PdcommGemFormattedProgramCapabilityCommandInfo *info)

Declared in: #include <pdcomm_gem_formatted_program_capabilities.h>

Parameters

NameDescription
resultGEM result that holds a capability.
indexZero-based command index, less than PdcommGemFormattedProgramCapabilityInfo::command_count.
infoCaller storage with struct_size set. When the size is sufficient, the known fields are zeroed (with struct_size set) before result is examined.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when info is NULL, info->struct_size is too small, or result is NULL; #PDCOMM_INVALID_STATE when result holds no capability; #PDCOMM_OUT_OF_RANGE when index is too large.