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)Both outputs are set to 0 before the result is inspected.
Parameters
| Name | Description |
|---|---|
result | Result with outcome #PDCOMM_GEM_EVENT_RECEIVED. |
report_index | Zero-based report position in the message. |
out_report_id | Receives the RPTID. Must not be NULL. |
out_value_count | Receives 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.