nRF Connect SDK API 2.8.99
|
int bt_hogp_map_read | ( | struct bt_hogp * | hogp, |
bt_hogp_map_cb | func, | ||
size_t | offset, | ||
k_timeout_t | timeout ) |
#include <include/bluetooth/services/hogp.h>
Read part of the report map.
This function sends a read request to the report map value. Depending on the offset
, either read or read blob is sent.
The report map might not fit into a single PDU. To read the whole map, call this function repeatedly with a different offset.
hogp | HOGP object. |
func | Function to be called to process the response. |
offset | Byte offset where to start data read. |
timeout | Time-out for the common read structure usage. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |