Skip to content
Start free evaluation

pdcomm_gem_result_query_report

Function

Reads the RPTID and value count of one report in an S6F16 reply.

PdcommStatus pdcomm_gem_result_query_report(const PdcommGemResult *result, size_t report_index, PdcommGemQueryReportInfo *info)

Declared in: #include <pdcomm_gem_queries.h>

S6F16 responses only. Reports keep their wire order.

Parameters

NameDescription
resultResult with outcome #PDCOMM_GEM_EVENT_QUERY_RECEIVED.
report_indexZero-based report position.
infoCaller storage; set info->struct_size first. Known fields are zeroed before the result is inspected.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when info is NULL or too small, or result is NULL; #PDCOMM_INVALID_STATE when result is not an S6F16 response; #PDCOMM_OUT_OF_RANGE when report_index is not less than the report count; #PDCOMM_INVALID_DATA or #PDCOMM_INTERNAL_ERROR.