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

◆ bt_hogp_pm_write()

int bt_hogp_pm_write ( struct bt_hogp hogp,
enum bt_hids_pm  pm 
)

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

Set the current protocol mode.

This function sends a write command to the Protocol Mode value.

Note
For the Protocol Mode value, only Write Without Response is used, so there is no control over the real Protocol Mode value if the write does not succeed.
Parameters
hogpHOGP object.
pmProtocol mode to select.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.