![]() |
nRF Connect SDK API 3.3.99
|
| int bt_latency_init | ( | struct bt_latency * | latency, |
| const struct bt_latency_cb * | cb ) |
#include <include/bluetooth/services/latency.h>
Initialize the GATT Latency Service instance.
Marks the instance as initialized and stores the given callbacks.
| [in] | latency | Latency service instance. |
| [in] | cb | Struct containing pointers to callback functions. Can be NULL if no callbacks are defined. |
| 0 | If the operation was successful. Otherwise, a negative error code is returned. |
| -EINVAL | Input parameters are invalid. |
| -EALREADY | Latency service has already been initialized. |