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

◆ bt_hids_boot_mouse_inp_rep_send()

int bt_hids_boot_mouse_inp_rep_send ( struct bt_hids hids_obj,
struct bt_conn *  conn,
const uint8_t *  buttons,
int8_t  x_delta,
int8_t  y_delta,
bt_gatt_complete_func_t  cb 
)

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

Send Boot Mouse Input Report.

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.
buttonsPointer to the state of the mouse buttons - if null, buttons are set to the previously passed value.
x_deltaHorizontal movement.
y_deltaVertical movement.
cbNotification complete callback (can be NULL).
Returns
0 If the operation was successful. Otherwise, a (negative) error code is returned.