Lines Matching refs:conn_id
91 uint8_t conn_id = bt_conn_index(conn); in discover_func() local
107 if (!bt_uuid_cmp(discover_params[conn_id].uuid, BT_UUID_TMAS)) { in discover_func()
110 memcpy(&uuid[conn_id], BT_UUID_GATT_TMAPR, sizeof(uuid[conn_id])); in discover_func()
111 discover_params[conn_id].uuid = &uuid[conn_id].uuid; in discover_func()
112 discover_params[conn_id].start_handle = attr->handle + 1; in discover_func()
113 discover_params[conn_id].type = BT_GATT_DISCOVER_CHARACTERISTIC; in discover_func()
116 err = bt_gatt_discover(conn, &discover_params[conn_id]); in discover_func()
120 } else if (!bt_uuid_cmp(discover_params[conn_id].uuid, BT_UUID_GATT_TMAPR)) { in discover_func()
122 read_params[conn_id].func = tmap_char_read; in discover_func()
123 read_params[conn_id].handle_count = 1u; in discover_func()
124 read_params[conn_id].single.handle = bt_gatt_attr_value_handle(attr); in discover_func()
125 read_params[conn_id].single.offset = 0; in discover_func()
235 uint8_t conn_id = bt_conn_index(conn); in bt_tmap_discover() local
239 memcpy(&uuid[conn_id], BT_UUID_TMAS, sizeof(uuid[conn_id])); in bt_tmap_discover()
240 discover_params[conn_id].uuid = &uuid[conn_id].uuid; in bt_tmap_discover()
241 discover_params[conn_id].func = discover_func; in bt_tmap_discover()
242 discover_params[conn_id].start_handle = BT_ATT_FIRST_ATTRIBUTE_HANDLE; in bt_tmap_discover()
243 discover_params[conn_id].end_handle = BT_ATT_LAST_ATTRIBUTE_HANDLE; in bt_tmap_discover()
244 discover_params[conn_id].type = BT_GATT_DISCOVER_PRIMARY; in bt_tmap_discover()
246 err = bt_gatt_discover(conn, &discover_params[conn_id]); in bt_tmap_discover()