Home | History | Annotate | Download | only in gap

Lines Matching refs:p_db_attr

217     tGAP_ATTR   *p_db_attr = gap_cb.gatt_attr;
222 for (i = 0; i < GAP_MAX_CHAR_NUM; i ++, p_db_attr ++)
224 if (handle == p_db_attr->handle)
226 if (p_db_attr->uuid != GATT_UUID_GAP_DEVICE_NAME &&
230 switch (p_db_attr->uuid)
251 UINT16_TO_STREAM(p, p_db_attr->attr_value.icon);
256 UINT16_TO_STREAM(p, p_db_attr->attr_value.conn_param.int_min); /* int_min */
257 UINT16_TO_STREAM(p, p_db_attr->attr_value.conn_param.int_max); /* int_max */
258 UINT16_TO_STREAM(p, p_db_attr->attr_value.conn_param.latency); /* latency */
259 UINT16_TO_STREAM(p, p_db_attr->attr_value.conn_param.sp_tout); /* sp_tout */
265 UINT8_TO_STREAM(p, p_db_attr->attr_value.addr_resolution);
304 tGAP_ATTR *p_db_attr = gap_cb.gatt_attr;
308 for (i = 0; i < GAP_MAX_CHAR_NUM; i ++, p_db_attr ++)
310 if (p_data-> handle == p_db_attr->handle)
385 tGAP_ATTR *p_db_attr = &gap_cb.gatt_attr[0];
404 uuid.uu.uuid16 = p_db_attr->uuid = GATT_UUID_GAP_DEVICE_NAME;
405 p_db_attr->handle = GATTS_AddCharacteristic(service_handle, &uuid, GATT_PERM_READ, GATT_CHAR_PROP_BIT_READ);
406 p_db_attr ++;
410 uuid.uu.uuid16 = p_db_attr->uuid = GATT_UUID_GAP_ICON;
411 p_db_attr->handle = GATTS_AddCharacteristic(service_handle,
415 p_db_attr ++;
420 uuid.uu.uuid16 = p_db_attr->uuid = GATT_UUID_GAP_PREF_CONN_PARAM;
421 p_db_attr->attr_value.conn_param.int_max = GAP_PREFER_CONN_INT_MAX; /* 6 */
422 p_db_attr->attr_value.conn_param.int_min = GAP_PREFER_CONN_INT_MIN; /* 0 */
423 p_db_attr->attr_value.conn_param.latency = GAP_PREFER_CONN_LATENCY; /* 0 */
424 p_db_attr->attr_value.conn_param.sp_tout = GAP_PREFER_CONN_SP_TOUT; /* 2000 */
425 p_db_attr->handle = GATTS_AddCharacteristic(service_handle,
429 p_db_attr ++;
434 uuid.uu.uuid16 = p_db_attr->uuid = GATT_UUID_GAP_CENTRAL_ADDR_RESOL;
435 p_db_attr->handle = GATTS_AddCharacteristic(service_handle, &uuid,
437 p_db_attr->attr_value.addr_resolution = 0;
438 p_db_attr++;
463 tGAP_ATTR *p_db_attr = gap_cb.gatt_attr;
468 for (i = 0; i < GAP_MAX_CHAR_NUM; i ++, p_db_attr ++)
470 if (p_db_attr->uuid == attr_uuid)
477 p_db_attr->attr_value.icon = p_value->icon;
481 memcpy((void *)&p_db_attr->attr_value.conn_param,
490 p_db_attr->attr_value.addr_resolution = p_value->addr_resolution;