nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ send_report

bool(* hid_report_provider_api::send_report) (uint8_t report_id, bool force)

Send report to the currently connected subscriber.

The HID provider must send the HID report as a hid_report_event only if the HID report data requires an update (there is user input waiting). Otherwise, the HID provider must skip sending the HID report unless a force flag is set.

If the force flag is set, the HID provider needs to always send a HID report (even if the report would contain no new information). The HID state sets the force flag if the connected subscriber requires an update (to refresh the state).

Parameters
[in]report_idReport ID.
[in]forceForce send report to refresh state.
Returns
true, if the report was sent successfully. Otherwise returns false.