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

◆ BT_GATT_POOL_CCC

#define BT_GATT_POOL_CCC (   _gp,
  _ccc,
  _ccc_changed,
  _perm 
)

#include <include/bluetooth/gatt_pool.h>

Value:
do { \
int _ret; \
_ccc = (struct _bt_gatt_ccc)BT_GATT_CCC_INITIALIZER(\
_ccc_changed, NULL, NULL); \
_ret = bt_gatt_pool_ccc_alloc(_gp, &_ccc, _perm); \
__ASSERT_NO_MSG(!_ret); \
(void)_ret; \
} while (0)
int bt_gatt_pool_ccc_alloc(struct bt_gatt_pool *gp, struct _bt_gatt_ccc *ccc, uint8_t perm)
Take a CCC descriptor from the pool.

Register a CCC descriptor.

Parameters
_gpGATT service object with dynamic attribute allocation.
_cccCCC descriptor configuration.
_ccc_changedCCC value changed callback.
_permCCC descriptor permissions.