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

◆ bt_hids_inp_rep_send_userdata()

int bt_hids_inp_rep_send_userdata ( struct bt_hids * hids_obj,
struct bt_conn * conn,
uint8_t rep_index,
uint8_t const * rep,
uint8_t len,
bt_gatt_complete_func_t cb,
void * userdata )

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

Send Input Report, operation complete callback has user data as argument.

Note
The function is not thread safe. It cannot be called from multiple threads at the same time.
Parameters
hids_objPointer to HIDS instance.
connPointer to Connection Object.
rep_indexIndex of report descriptor.
repPointer to the report data.
lenLength of report data.
cbNotification complete callback (can be NULL).
userdataArgument passed to notificaion complete callback.
Returns
0 If the operation was successful. Otherwise, a (negative) error code is returned.