Lines Matching refs:sub_params
661 struct bt_gatt_subscribe_params *sub_params = NULL; in char_discover_func() local
698 sub_params = &inst->recv_state_sub_params[idx]; in char_discover_func()
699 sub_params->disc_params = &inst->recv_state_disc_params[idx]; in char_discover_func()
703 if (sub_params != NULL) { in char_discover_func()
704 sub_params->end_handle = inst->end_handle; in char_discover_func()
705 sub_params->ccc_handle = BT_GATT_AUTO_DISCOVER_CCC_HANDLE; in char_discover_func()
706 sub_params->value = BT_GATT_CCC_NOTIFY; in char_discover_func()
707 sub_params->value_handle = attr->handle + 1; in char_discover_func()
708 sub_params->notify = notify_handler; in char_discover_func()
709 atomic_set_bit(sub_params->flags, BT_GATT_SUBSCRIBE_FLAG_VOLATILE); in char_discover_func()
711 err = bt_gatt_subscribe(conn, sub_params); in char_discover_func()
714 sub_params->value_handle, err); in char_discover_func()