Skip to content
Start free evaluation

pdcomm_gem_result_event_report

Function

Reads the RPTID and value count of one report in a received S6F11.

PdcommStatus pdcomm_gem_result_event_report(const PdcommGemResult *result, size_t report_index, uint32_t *out_report_id, size_t *out_value_count)

Declared in: #include <pdcomm_gem_reports.h>

Both outputs are set to 0 before the result is inspected.

Parameters

NameDescription
resultResult with outcome #PDCOMM_GEM_EVENT_RECEIVED.
report_indexZero-based report position in the message.
out_report_idReceives the RPTID. Must not be NULL.
out_value_countReceives the number of values in the report. Must not be NULL or overlap out_report_id.

Returns

#PDCOMM_OK on success; #PDCOMM_INVALID_ARGUMENT when a pointer is NULL or the outputs overlap; #PDCOMM_INVALID_STATE when result is not a received event report; #PDCOMM_OUT_OF_RANGE when report_index is not less than the report count; #PDCOMM_INVALID_DATA or #PDCOMM_INTERNAL_ERROR.