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

◆ BT_HIDS_DEF

#define BT_HIDS_DEF (   _name,
  ... 
)

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

Value:
BT_CONN_CTX_DEF(_name, \
CONFIG_BT_HIDS_MAX_CLIENT_COUNT, \
_BT_HIDS_CONN_CTX_SIZE_CALC(__VA_ARGS__)); \
static struct bt_hids _name = \
{ \
.gp = BT_GATT_POOL_INIT(CONFIG_BT_HIDS_ATTR_MAX), \
.conn_ctx = &_CONCAT(_name, _ctx_lib), \
}
#define BT_CONN_CTX_DEF(_name, _max_clients, _ctx_sz)
Macro for defining a Bluetooth connection context library instance.
Definition: conn_ctx.h:31
#define BT_GATT_POOL_INIT(_attr_array_size)
Initialization of the GATT attribute pool variable.
Definition: gatt_pool.h:31
struct bt_gatt_pool gp
Definition: hids.h:423
HID Service structure.
Definition: hids.h:421

Declare a HIDS instance.

Parameters
_nameName of the HIDS instance.
...Lengths of HIDS reports