Lines Matching full:instance
16 struct bt_nus_inst *instance = NULL; in nus_bt_chr_write() local
18 instance = bt_nus_inst_get_from_attr(attr); in nus_bt_chr_write()
19 __ASSERT_NO_MSG(instance); in nus_bt_chr_write()
21 SYS_SLIST_FOR_EACH_CONTAINER(instance->cbs, listener, _node) { in nus_bt_chr_write()
33 struct bt_nus_inst *instance = NULL; in nus_ccc_cfg_changed() local
35 instance = bt_nus_inst_get_from_attr(attr); in nus_ccc_cfg_changed()
36 __ASSERT_NO_MSG(instance); in nus_ccc_cfg_changed()
38 SYS_SLIST_FOR_EACH_CONTAINER(instance->cbs, listener, _node) { in nus_ccc_cfg_changed()
45 int bt_nus_inst_cb_register(struct bt_nus_inst *instance, struct bt_nus_cb *cb, void *ctx) in bt_nus_inst_cb_register() argument
51 if (!instance) { in bt_nus_inst_cb_register()
53 instance = bt_nus_inst_default(); in bt_nus_inst_cb_register()
60 sys_slist_append(instance->cbs, &cb->_node); in bt_nus_inst_cb_register()
66 struct bt_nus_inst *instance, in bt_nus_inst_send() argument
74 if (!instance) { in bt_nus_inst_send()
76 instance = bt_nus_inst_default(); in bt_nus_inst_send()
82 return bt_gatt_notify(conn, &instance->svc->attrs[1], data, len); in bt_nus_inst_send()