pdcomm_gem_result_formatted_program_query_parameter_get
Function
Copies one PPARM of one returned command as a new SECS-II item.
PdcommStatus pdcomm_gem_result_formatted_program_query_parameter_get(const PdcommGemResult *result, size_t command_index, size_t parameter_index, PdcommSecsItem **out_item)Parameters
| Name | Description |
|---|---|
result | Query result whose present flag is 1. |
command_index | Zero-based command index. |
parameter_index | Zero-based parameter index. |
out_item | Receives a copy of the parameter item. Set to NULL first when out_item is not NULL. |
Returns
#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when result or out_item is NULL; #PDCOMM_INVALID_STATE when the result has no present program; #PDCOMM_OUT_OF_RANGE when an index is out of range; #PDCOMM_ALLOCATION_FAILED when the item cannot be created; #PDCOMM_INTERNAL_ERROR when a panic was contained.
Notes
- Ownership: release the item with pdcomm_secs_destroy().