Skip to content
Start free evaluation

pdcomm_gem_result_formatted_program_capability_parameter_get

Function

Copies one parameter descriptor of a capability command.

PdcommStatus pdcomm_gem_result_formatted_program_capability_parameter_get(const PdcommGemResult *result, size_t command_index, size_t parameter_index, PdcommSecsItem **out_item)

Declared in: #include <pdcomm_gem_formatted_program_capabilities.h>

Parameters

NameDescription
resultGEM result that holds a capability.
command_indexZero-based command index.
parameter_indexZero-based parameter descriptor index.
out_itemReceives a new List item (9, 5, or 4 elements); set to NULL first.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when out_item or result is NULL; #PDCOMM_INVALID_STATE when result holds no capability; #PDCOMM_OUT_OF_RANGE when an index is too large; #PDCOMM_LIMIT_EXCEEDED or #PDCOMM_ALLOCATION_FAILED when the copy cannot be created.

Notes

  • Ownership: release the item with pdcomm_secs_destroy(). It remains valid after result is destroyed.