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)S6F16 responses only. Reports keep their wire order.
Parameters
| Name | Description |
|---|---|
result | Result with outcome #PDCOMM_GEM_EVENT_QUERY_RECEIVED. |
report_index | Zero-based report position. |
info | Caller 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.