Skip to content
Start free evaluation

pdcomm_gem_result_command_info

Function

Reads the summary of a remote command request or reply result.

PdcommStatus pdcomm_gem_result_command_info(const PdcommGemResult *result, PdcommGemCommandResultInfo *info)

Declared in: #include <pdcomm_gem_commands.h>

Request info always describes the validation at receipt; its issue list does not change after a response. Host reply info has is_request 0 and counts the received CPACK entries. The generic pdcomm_gem_result_info() reports the actual HCACK after a response, and its entry_count is the request parameter count or the reply issue count.

Parameters

NameDescription
resultResult with outcome #PDCOMM_GEM_COMMAND_RECEIVED or #PDCOMM_GEM_COMMAND_ACK.
infoCaller storage; set info->struct_size before the call. Its known fields are cleared before the result kind is checked.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when result or info is NULL or info->struct_size is too small; #PDCOMM_INVALID_STATE when result is not a remote command result; #PDCOMM_INTERNAL_ERROR when a panic was contained.