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

◆ bt_hogp_map_read()

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.

Note
This function uses the common read parameters structure inside the HIDS client object. This object may be used by other functions and is protected by semaphore.
Parameters
hogpHOGP object.
funcFunction to be called to process the response.
offsetByte offset where to start data read.
timeoutTime-out for the common read structure usage.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.