Lines Matching refs:uuid

28 int bt_gatts_adapter_update_user_data(size_t index, uint16_t uuid,
89 struct ut_uuid_16 *uuid = in bt_gatts_declare_16bits_uuid() local
91 uuid->uuid.type = UUID_TYPE_16; in bt_gatts_declare_16bits_uuid()
92 uuid->val = val; in bt_gatts_declare_16bits_uuid()
93 return (uuid_t *)uuid; in bt_gatts_declare_16bits_uuid()
96 void bt_gatts_define_gatt_srvc(gatt_attr_t *out, uint16_t uuid) in bt_gatts_define_gatt_srvc() argument
98 LOGD(LOG_TAG, "[%s] declare service uuid 0x%04x", __func__, uuid); in bt_gatts_define_gatt_srvc()
100 out->uuid = bt_gatts_declare_16bits_uuid(0x2800); // UUID_GATT_PRIMARY; in bt_gatts_define_gatt_srvc()
103 out->user_data = (void *)bt_gatts_declare_16bits_uuid(uuid); in bt_gatts_define_gatt_srvc()
106 void bt_gatts_define_gatt_char(gatt_attr_t *out, uint16_t uuid, uint8_t perimt) in bt_gatts_define_gatt_char() argument
108 LOGD(LOG_TAG, "[%s] declare char uuid 0x%04x", __func__, uuid); in bt_gatts_define_gatt_char()
113 data->uuid = bt_gatts_declare_16bits_uuid(uuid); in bt_gatts_define_gatt_char()
117 out->uuid = bt_gatts_declare_16bits_uuid(0x2803); // UUID_GATT_CHRC; in bt_gatts_define_gatt_char()
123 void bt_gatts_define_gatt_char_val(gatt_attr_t *out, uint16_t uuid, in bt_gatts_define_gatt_char_val() argument
126 LOGD(LOG_TAG, "[%s] declare char val uuid 0x%04x", __func__, uuid); in bt_gatts_define_gatt_char_val()
127 out->uuid = bt_gatts_declare_16bits_uuid(uuid); in bt_gatts_define_gatt_char_val()
140 out->uuid = bt_gatts_declare_16bits_uuid(0x2902); // UUID_GATT_CCC; in bt_gatts_define_ccc()
223 if (((struct ut_uuid_16 *)(g_attrs_list[ii].uuid))->val == in bt_gatts_adapter_update_user_data()
274 static int bt_gatts_adapter_char_get_desc_idx(int start_idx, int16_t uuid) in bt_gatts_adapter_char_get_desc_idx() argument
280 if (UUID16(g_attrs_list[i].uuid) == uuid) { in bt_gatts_adapter_char_get_desc_idx()
284 if (UUID16(g_attrs_list[i].uuid) == UUID16(UUID_GATT_CHRC)) { in bt_gatts_adapter_char_get_desc_idx()
292 int bt_gatts_adapter_update_chars(char *uuid, uint8_t *data, size_t len) in bt_gatts_adapter_update_chars() argument
299 -1, get_16bits_hex_from_string(uuid), data, len); in bt_gatts_adapter_update_chars()
300 LOGD(LOG_TAG, "[%s] index = %d, uuid = %s, len = %d", __func__, index, uuid, in bt_gatts_adapter_update_chars()
354 ((struct ut_uuid_16 *)(g_attrs_list[ii].uuid))->val, in bt_gatts_adapter_event_callback()
385 ((struct ut_uuid_16 *)(g_attrs_list[ii].uuid))->val, in bt_gatts_adapter_event_callback()