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

◆ bt_hogp_rep_size()

size_t bt_hogp_rep_size ( const struct bt_hogp_rep_info *  rep)

#include <include/bluetooth/services/hogp.h>

Get report size.

Note
You can rely on this function after completing the read procedure for your target HID report with the bt_hogp_rep_read API. The completion is reported by the appropriate callback. Alternatively, you can subscribe to your target report with bt_hogp_rep_subscribe API and start using the function below once you receive the first notification. In all other cases, the size information is not available.
Parameters
repReport object.
Returns
The size of the report or 0 if not available.