/AliOS-Things-master/components/ble_host/bt_host/host/ |
A D | uuid.c | 26 .uuid = { BT_UUID_TYPE_128 }, 84 uuid->type = BT_UUID_TYPE_16; in bt_uuid_create() 85 BT_UUID_16(uuid)->val = sys_get_le16(data); in bt_uuid_create() 88 uuid->type = BT_UUID_TYPE_32; in bt_uuid_create() 89 BT_UUID_32(uuid)->val = sys_get_le32(data); in bt_uuid_create() 92 uuid->type = BT_UUID_TYPE_128; in bt_uuid_create() 93 memcpy(&BT_UUID_128(uuid)->val, data, 16); in bt_uuid_create() 107 switch (uuid->type) { in bt_uuid_to_str() 109 snprintk(str, len, "%04x", BT_UUID_16(uuid)->val); in bt_uuid_to_str() 132 const char *bt_uuid_str(const struct bt_uuid *uuid) in bt_uuid_str() argument [all …]
|
A D | gatt.c | 1352 if (uuid && bt_uuid_cmp(uuid, attr->uuid)) { in gatt_foreach_iter() 2727 value.uuid = params->uuid; in gatt_find_type_rsp() 2729 attr.uuid = &uuid_svc.uuid; in gatt_find_type_rsp() 2814 value.uuid = &u.uuid; in read_included_uuid_cb() 2823 if (params->uuid && bt_uuid_cmp(&u.uuid, params->uuid)) { in read_included_uuid_cb() 2912 value.uuid = &u.uuid; in parse_include() 2928 if (params->uuid && bt_uuid_cmp(&u.uuid, params->uuid)) { in parse_include() 3010 if (params->uuid && bt_uuid_cmp(&u.uuid, params->uuid)) { in parse_characteristic() 3152 value.uuid = &u.uuid; in parse_service() 3154 attr.uuid = &uuid_svc.uuid; in parse_service() [all …]
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/ref_impl/ |
A D | mesh_hal_ble.c | 423 if (params->uuid == &prov_primary_uuid.uuid) { in proxy_prov_discover_func() 424 discov_param.uuid = &prov_character_data_in_uuid.uuid; in proxy_prov_discover_func() 430 discov_param.uuid = &prov_descriptor_data_in_uuid.uuid; in proxy_prov_discover_func() 436 discov_param.uuid = &prov_character_data_out_uuid.uuid; in proxy_prov_discover_func() 444 discov_param.uuid = &prov_descriptor_ccc_uuid.uuid; in proxy_prov_discover_func() 450 } else if (params->uuid == &prov_descriptor_ccc_uuid.uuid) { in proxy_prov_discover_func() 484 if (params->uuid == &proxy_primary_uuid.uuid) { in proxy_discover_func() 485 discov_param.uuid = &proxy_character_data_in_uuid.uuid; in proxy_discover_func() 505 discov_param.uuid = &proxy_descriptor_ccc_uuid.uuid; in proxy_discover_func() 551 discov_param.uuid = &proxy_primary_uuid.uuid; in proxy_prov_get_mtu_response() [all …]
|
/AliOS-Things-master/components/py_engine/modules/ble/ |
A D | bt_gatts_adapter.c | 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 103 out->user_data = (void *)bt_gatts_declare_16bits_uuid(uuid); in bt_gatts_define_gatt_srvc() 113 data->uuid = bt_gatts_declare_16bits_uuid(uuid); in bt_gatts_define_gatt_char() 127 out->uuid = bt_gatts_declare_16bits_uuid(uuid); in bt_gatts_define_gatt_char_val() 280 if (UUID16(g_attrs_list[i].uuid) == uuid) { in bt_gatts_adapter_char_get_desc_idx() [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/wireless/bt_host/ |
A D | bt_gatts_adapter.c | 92 uuid->uuid.type = UUID_TYPE_16; in bt_gatts_declare_16bits_uuid() 93 uuid->val = val; in bt_gatts_declare_16bits_uuid() 94 return (uuid_t *)uuid; in bt_gatts_declare_16bits_uuid() 97 void bt_gatts_define_gatt_srvc(gatt_attr_t *out, uint16_t uuid) { in bt_gatts_define_gatt_srvc() argument 103 out->user_data = (void *)bt_gatts_declare_16bits_uuid(uuid); in bt_gatts_define_gatt_srvc() 111 data->uuid= bt_gatts_declare_16bits_uuid(uuid); in bt_gatts_define_gatt_char() 115 out->uuid = bt_gatts_declare_16bits_uuid(0x2803); //UUID_GATT_CHRC; in bt_gatts_define_gatt_char() 123 out->uuid = bt_gatts_declare_16bits_uuid(uuid); in bt_gatts_define_gatt_char_val() 134 out->uuid = bt_gatts_declare_16bits_uuid(0x2902); //UUID_GATT_CCC; in bt_gatts_define_ccc() 242 if (UUID16(g_attrs_list[i].uuid) == uuid) { in bt_gatts_adapter_char_get_desc_idx() [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/bt_if_enhanced/inc/ |
A D | sdp_api.h | 194 (U8)(uuid[15]), \ 195 (U8)(uuid[14]), \ 196 (U8)(uuid[13]), \ 197 (U8)(uuid[12]), \ 198 (U8)(uuid[11]), \ 199 (U8)(uuid[10]), \ 200 (U8)(uuid[9]), \ 201 (U8)(uuid[8]), \ 202 (U8)(uuid[7]), \ 209 (U8)(uuid[0]) [all …]
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/wireless/bt_host/ |
A D | bt_gatts_adapter.c | 92 uuid->uuid.type = UUID_TYPE_16; in bt_gatts_declare_16bits_uuid() 93 uuid->val = val; in bt_gatts_declare_16bits_uuid() 94 return (uuid_t *)uuid; in bt_gatts_declare_16bits_uuid() 97 void bt_gatts_define_gatt_srvc(gatt_attr_t *out, uint16_t uuid) { in bt_gatts_define_gatt_srvc() argument 98 amp_debug(MOD_STR, "[%s] declare service uuid 0x%04x", __func__, uuid); in bt_gatts_define_gatt_srvc() 103 out->user_data = (void *)uuid; in bt_gatts_define_gatt_srvc() 107 amp_debug(MOD_STR, "[%s] declare char uuid 0x%04x", __func__, uuid); in bt_gatts_define_gatt_char() 111 data->uuid= bt_gatts_declare_16bits_uuid(uuid); in bt_gatts_define_gatt_char() 115 out->uuid = bt_gatts_declare_16bits_uuid(0x2803); //UUID_GATT_CHRC; in bt_gatts_define_gatt_char() 123 out->uuid = bt_gatts_declare_16bits_uuid(uuid); in bt_gatts_define_gatt_char_val() [all …]
|
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/core/src/ |
A D | AsyncCallerContext.cc | 24 AsyncCallerContext::AsyncCallerContext(const std::string &uuid) : uuid_(uuid) {} in AsyncCallerContext() argument 28 std::string AsyncCallerContext::uuid() const { return uuid_; } in uuid() function in AlibabaCloud::AsyncCallerContext 30 void AsyncCallerContext::setUuid(const std::string &uuid) { uuid_ = uuid; } in setUuid() argument
|
/AliOS-Things-master/components/ble_host/bt_host/include/bluetooth/ |
A D | uuid.h | 39 struct bt_uuid uuid; member 44 struct bt_uuid uuid; member 49 struct bt_uuid uuid; member 55 .uuid = { BT_UUID_TYPE_16 }, \ 61 .uuid = { BT_UUID_TYPE_32 }, \ 67 .uuid = { BT_UUID_TYPE_128 }, \ 78 #define BT_UUID_16(__u) CONTAINER_OF(__u, struct bt_uuid_16, uuid) 79 #define BT_UUID_32(__u) CONTAINER_OF(__u, struct bt_uuid_32, uuid) 80 #define BT_UUID_128(__u) CONTAINER_OF(__u, struct bt_uuid_128, uuid) 616 const char *bt_uuid_str(const struct bt_uuid *uuid); [all …]
|
A D | gatt.h | 105 const struct bt_uuid *uuid; member 174 const struct bt_uuid *uuid; member 182 const struct bt_uuid *uuid; member 246 const struct bt_uuid *uuid; member 362 const struct bt_uuid *uuid, 554 ((struct bt_gatt_chrc[]) { { .uuid = _uuid, \ 826 .uuid = _uuid, \ 842 const struct bt_uuid *uuid; member 934 const struct bt_uuid *uuid; member 1093 struct bt_uuid *uuid; member [all …]
|
/AliOS-Things-master/components/ble_host/bt_host/include/aos/ |
A D | gatt.h | 162 const uuid_t *uuid; member 192 uuid_t *uuid; 214 uuid_t *uuid; member 258 .uuid = _uuid, \ 298 uuid_t *uuid; member 304 uuid_t *uuid; 313 uuid_t *uuid; 357 #define ble_stack_gatt_discovery_primary(conn_handle, uuid, start_handle, end_handle) \ argument 360 #define ble_stack_gatt_discovery_include(conn_handle, uuid, start_handle, end_handle) \ argument 366 #define ble_stack_gatt_discovery_char(conn_handle, uuid, start_handle, end_handle) \ argument [all …]
|
A D | uuid.h | 40 uuid_t uuid; member 45 uuid_t uuid; member 50 uuid_t uuid; member 56 .uuid.type = UUID_TYPE_16, \ 62 .uuid.type = UUID_TYPE_32, \ 68 .uuid.type = UUID_TYPE_128, \ 86 uint8_t *get_uuid_val(uuid_t *uuid);
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/mesh_provisioner/ |
A D | mesh_provisioner.c | 101 memcpy(node.uuid, dev_uuid, sizeof(node.uuid)); in provisioner_unprovisioned_dev_found() 226 if (addr_val && uuid) { in provisioner_link_open() 227 memcpy(g_mesh_prov.del_dev.uuid, uuid, sizeof(g_mesh_prov.del_dev.uuid)); in provisioner_link_open() 269 memcpy(node.uuid, device_uuid, 16); in provisioner_complete() 378 if (!filter || !filter->uuid || !filter->uuid_length) { in ble_mesh_provisioner_dev_filter() 386 memcpy(g_mesh_prov.uuid_filter, filter->uuid, filter->uuid_length); in ble_mesh_provisioner_dev_filter() 431 memcpy(unprov_dev.uuid, node->uuid, sizeof(unprov_dev.uuid)); in ble_mesh_provisioner_dev_add() 461 int ble_mesh_provisioner_dev_del(uint8_t addr[6], uint8_t addr_type, uint8_t uuid[16]) in ble_mesh_provisioner_dev_del() 464 if (!g_mesh_prov.init_flag || !g_mesh_prov.enable || !addr || !uuid) { in ble_mesh_provisioner_dev_del() 472 memcpy(del_dev.uuid, uuid, sizeof(del_dev.uuid)); in ble_mesh_provisioner_dev_del() [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/ble_stack/hl/inc/ |
A D | attm.h | 56 uint16_t uuid; member 72 uint8_t uuid[ATT_UUID_128_LEN]; member 137 void attm_convert_to128(uint8_t *uuid128, uint8_t *uuid, uint8_t uuid_len); 148 bool attm_is_bt16_uuid(uint8_t *uuid); 159 bool attm_is_bt32_uuid(uint8_t *uuid); 201 uint8_t attm_svc_create_db(uint16_t *shdl, uint16_t uuid, uint8_t *cfg_flag, uint8_t max_nb_att, 245 uint8_t attm_svc_create_db_128(uint16_t *shdl, const uint8_t* uuid, uint8_t *cfg_flag, uint8_t max_…
|
/AliOS-Things-master/components/oss/src/client/ |
A D | AsyncCallerContext.cc | 27 AsyncCallerContext::AsyncCallerContext(const std::string &uuid) : in AsyncCallerContext() argument 28 uuid_(uuid) in AsyncCallerContext() 41 void AsyncCallerContext::setUuid(const std::string &uuid) in setUuid() argument 43 uuid_ = uuid; in setUuid()
|
/AliOS-Things-master/components/ble_host/bt_host/aos/ |
A D | ble.c | 52 } uuid; member 71 uuid->type = btuuid->type; in uuid_covert() 81 return uuid; in uuid_covert() 86 btuuid->type = uuid->type; in btuuid_covert() 960 uuid_covert(&event_data.svc.uuid, value->uuid); in discover_func() 968 uuid_covert(&event_data.svc_inc.uuid, inc_val->uuid); in discover_func() 976 uuid_covert(&event_data.char_c.uuid, chrc->uuid); in discover_func() 981 uuid_covert(&event_data.char_des.uuid, params->uuid); in discover_func() 1017 if (uuid) { in ble_stack_gatt_discovery() 1019 params->uuid = btuuid_covert(u, uuid); in ble_stack_gatt_discovery() [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/ble_stack/hl/api/ |
A D | gattc_task.h | 308 uint8_t uuid[__ARRAY_EMPTY]; member 322 uint8_t uuid[__ARRAY_EMPTY]; member 337 uint8_t uuid[__ARRAY_EMPTY]; member 352 uint8_t uuid[__ARRAY_EMPTY]; member 363 uint8_t uuid[__ARRAY_EMPTY]; member 389 uint8_t uuid[__ARRAY_EMPTY]; member 633 uint8_t uuid[ATT_UUID_128_LEN]; member 646 uint8_t uuid[ATT_UUID_128_LEN]; member 675 uint8_t uuid[ATT_UUID_128_LEN]; member 698 uint8_t uuid[ATT_UUID_128_LEN]; member
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/example/ble_central/ |
A D | ble_central_at_cmd.c | 205 u8 uuid[16] = {0}; in ble_central_at_cmd_get() local 225 hex_str_to_bd_addr(strlen(argv[4]), argv[4], uuid); in ble_central_at_cmd_get() 226 uuid16 = (uuid[1]<<8) | uuid[0]; in ble_central_at_cmd_get() 233 hex_str_to_bd_addr(strlen(argv[4]), argv[4], uuid); in ble_central_at_cmd_get() 234 gcs_by_uuid128_srv_discovery(conn_id, uuid); in ble_central_at_cmd_get() 261 hex_str_to_bd_addr(strlen(argv[6]), argv[6], uuid); in ble_central_at_cmd_get() 262 uuid16 = (uuid[1]<<8) | uuid[0]; in ble_central_at_cmd_get() 269 hex_str_to_bd_addr(strlen(argv[6]), argv[6], uuid); in ble_central_at_cmd_get() 428 u8 uuid[16] = {0}; in ble_central_at_cmd_read() local 448 hex_str_to_bd_addr(strlen(argv[5]), argv[5], uuid); in ble_central_at_cmd_read() [all …]
|
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/core/include/alibabacloud/core/ |
A D | AsyncCallerContext.h | 27 explicit AsyncCallerContext(const std::string &uuid); 30 std::string uuid() const; 31 void setUuid(const std::string &uuid);
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/ |
A D | provisioner_prov.c | 469 memcpy(node[i].uuid, uuid, 16); in provisioner_prov_restore_nodes_info() 531 if (uuid) { in provisioner_dev_find() 533 if (!memcmp(unprov_dev[i].uuid, uuid, 16)) { in provisioner_dev_find() 648 if (!memcmp(node[i].uuid, add_dev->uuid, 16)) { in bt_mesh_provisioner_add_unprov_dev() 658 if (!memcmp(link[i].uuid, add_dev->uuid, 16)) { in bt_mesh_provisioner_add_unprov_dev() 695 memcpy(unprov_dev[i].uuid, add_dev->uuid, 16); in bt_mesh_provisioner_add_unprov_dev() 756 memcpy(link[i].uuid, add_dev->uuid, 16); in bt_mesh_provisioner_add_unprov_dev() 806 memcpy(link[i].uuid, add_dev->uuid, 16); in bt_mesh_provisioner_add_unprov_dev() 857 memcpy(node[j].uuid, node_info->uuid, 16); in bt_mesh_provisioner_add_node() 2593 memcpy(node[j].uuid, link[i].uuid, 16); in prov_complete() [all …]
|
A D | main.c | 197 struct bt_uuid_128 uuid = { .uuid.type = BT_UUID_TYPE_128 }; in bt_mesh_prov_enable() local 199 memcpy(uuid.val, prov->uuid, 16); in bt_mesh_prov_enable() 200 BT_INFO("Device UUID: %s", bt_uuid_str(&uuid.uuid)); in bt_mesh_prov_enable() 436 if (prov->uuid == NULL) { in bt_mesh_init()
|
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/test/core/ |
A D | asynccallercontext_ut.cc | 13 EXPECT_TRUE(context.uuid() == init_uuid); in TEST() 15 EXPECT_TRUE(context.uuid() == new_uuid); in TEST() 17 EXPECT_TRUE(context_from_GenerateUuid.uuid().length() == sys_generated_uuid.length()); in TEST()
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/ble_stack/hl/src/gatt/attm/ |
A D | attm_db.h | 52 uint16_t uuid; member 103 uint16_t uuid; member 304 uint8_t attmdb_get_uuid(struct attm_elmt *elmt, uint8_t* uuid_len, uint8_t* uuid, bool srv_uuid, bo… 329 uint8_t attmdb_update_svc_uuid(uint16_t handle, uint16_t uuid);
|
/AliOS-Things-master/components/py_engine/engine/extmod/nimble/ |
A D | modbluetooth_nimble.c | 162 if (uuid->type == MP_BLUETOOTH_UUID_TYPE_16) { in create_nimble_uuid() 165 result->value = (uuid->data[1] << 8) | uuid->data[0]; in create_nimble_uuid() 170 …result->value = (uuid->data[1] << 24) | (uuid->data[1] << 16) | (uuid->data[1] << 8) | uuid->data[… in create_nimble_uuid() 175 memcpy(result->value, uuid->data, 16); in create_nimble_uuid() 194 switch (uuid->u.type) { in create_mp_uuid() 197 result.data[0] = uuid->u16.value & 0xff; in create_mp_uuid() 202 result.data[0] = uuid->u32.value & 0xff; in create_mp_uuid() 1286 if (uuid) { in mp_bluetooth_gattc_discover_primary_services() 1288 create_nimble_uuid(uuid, &nimble_uuid); in mp_bluetooth_gattc_discover_primary_services() 1315 if (uuid) { in mp_bluetooth_gattc_discover_characteristics() [all …]
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/ |
A D | provisioner_prov.h | 61 u8_t uuid[16]; member 70 u8_t uuid[16]; member 92 u8_t uuid[16]; /* node uuid */ member 264 void provisioner_srv_data_recv(struct net_buf_simple *buf, const bt_addr_le_t *addr, u16_t uuid); 412 int provisioner_prov_restore_nodes_info(bt_addr_le_t *addr, u8_t uuid[16], u16_t oob_info, u8_t ele…
|