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