Skip to content
Start free evaluation

pdcomm_gem_result_enhanced_command_info

Function

Reads the summary of an enhanced command request or reply result.

PdcommStatus pdcomm_gem_result_enhanced_command_info(const PdcommGemResult *result, PdcommGemEnhancedCommandResultInfo *info)

Declared in: #include <pdcomm_gem_enhanced_commands.h>

Request info always describes the original admission, even after a response. Reply info has data_id 0 and is_request 0. The generic pdcomm_gem_result_info() entry_count is the request parameter count or the number of outer acknowledgement entries of a reply.

Parameters

NameDescription
resultResult with outcome #PDCOMM_GEM_ENHANCED_COMMAND_RECEIVED or #PDCOMM_GEM_ENHANCED_COMMAND_ACK.
infoCaller storage; set info->struct_size before the call. Its known fields are cleared before result 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 an enhanced command result; #PDCOMM_INTERNAL_ERROR when a panic was contained.