/Zephyr-latest/subsys/bluetooth/services/ots/ |
D | ots_internal.h | 41 #define BT_OTS_SET_METADATA_REQ_NAME(metadata) \ argument 42 ((metadata) = (metadata) | BT_OTS_METADATA_REQ_NAME) 43 #define BT_OTS_SET_METADATA_REQ_TYPE(metadata) \ argument 44 ((metadata) = (metadata) | BT_OTS_METADATA_REQ_TYPE) 45 #define BT_OTS_SET_METADATA_REQ_SIZE(metadata) \ argument 46 ((metadata) = (metadata) | BT_OTS_METADATA_REQ_SIZE) 47 #define BT_OTS_SET_METADATA_REQ_CREATED(metadata) \ argument 48 ((metadata) = (metadata) | BT_OTS_METADATA_REQ_CREATED) 49 #define BT_OTS_SET_METADATA_REQ_MODIFIED(metadata) \ argument 50 ((metadata) = (metadata) | BT_OTS_METADATA_REQ_MODIFIED) [all …]
|
D | ots_dir_list.c | 40 obj_name_len = strlen(obj->metadata.name); in dir_list_object_record_size() 49 if (obj->metadata.type.uuid.type == BT_UUID_TYPE_16) { in dir_list_object_record_size() 56 len += sizeof(obj->metadata.size.cur); in dir_list_object_record_size() 59 len += sizeof(obj->metadata.props); in dir_list_object_record_size() 79 if (obj->metadata.type.uuid.type == BT_UUID_TYPE_128) { in dir_list_object_encode() 90 obj_name_len = strlen(obj->metadata.name); in dir_list_object_encode() 96 net_buf_simple_add_mem(net_buf, obj->metadata.name, obj_name_len); in dir_list_object_encode() 102 if (obj->metadata.type.uuid.type == BT_UUID_TYPE_16) { in dir_list_object_encode() 103 net_buf_simple_add_le16(net_buf, obj->metadata.type.uuid_16.val); in dir_list_object_encode() 105 net_buf_simple_add_mem(net_buf, obj->metadata.type.uuid_128.val, in dir_list_object_encode() [all …]
|
D | ots.c | 146 ots->cur_obj->metadata.name, in ots_obj_name_read() 147 strlen(ots->cur_obj->metadata.name)); in ots_obj_name_read() 190 if (obj != ots->cur_obj && strcmp(name, obj->metadata.name) == 0) { in ots_obj_name_write() 200 ots->cur_obj->metadata.name, name); in ots_obj_name_write() 203 strcpy(ots->cur_obj->metadata.name, name); in ots_obj_name_write() 223 obj_meta = &ots->cur_obj->metadata; in ots_obj_type_read() 252 &ots->cur_obj->metadata.size, in ots_obj_size_read() 253 sizeof(ots->cur_obj->metadata.size)); in ots_obj_size_read() 294 &ots->cur_obj->metadata.props, in ots_obj_prop_read() 295 sizeof(ots->cur_obj->metadata.props)); in ots_obj_prop_read() [all …]
|
D | ots_client.c | 46 struct bt_ots_obj_metadata metadata; member 1561 uint8_t metadata) in bt_ots_client_read_object_metadata() argument 1571 } else if (!metadata) { in bt_ots_client_read_object_metadata() 1586 inst->metadata_to_read = metadata & BT_OTS_METADATA_REQ_ALL; in bt_ots_client_read_object_metadata() 1616 rec->metadata.id = net_buf_simple_pull_le48(buf); in decode_record() 1621 (void)bt_ots_obj_id_to_str(rec->metadata.id, t, sizeof(t)); in decode_record() 1645 if (rec->name_len >= sizeof(rec->metadata.name_c)) { in decode_record() 1651 memcpy(rec->metadata.name_c, name, rec->name_len); in decode_record() 1654 rec->metadata.name_c[rec->name_len] = '\0'; in decode_record() 1678 if (!bt_uuid_create(&rec->metadata.type.uuid, uuid, BT_UUID_SIZE_128)) { in decode_record() [all …]
|
D | ots_oacp.c | 79 if (strlen(obj->metadata.name) > 0) { in oacp_create_proc_validate() 86 if (obj->metadata.size.cur > 0) { in oacp_create_proc_validate() 93 if (!BT_OTS_OBJ_GET_PROP_WRITE(obj->metadata.props)) { in oacp_create_proc_validate() 140 if (!BT_OTS_OBJ_GET_PROP_DELETE(ots->cur_obj->metadata.props)) { in oacp_delete_proc_validate() 184 if (params->offset > ots->cur_obj->metadata.size.cur) { in oacp_checksum_proc_validate() 188 if ((params->offset + (uint64_t) params->len) > ots->cur_obj->metadata.size.alloc) { in oacp_checksum_proc_validate() 228 if (!BT_OTS_OBJ_GET_PROP_READ(ots->cur_obj->metadata.props)) { in oacp_read_proc_validate() 237 ots->cur_obj->metadata.size.cur) { in oacp_read_proc_validate() 270 if (!BT_OTS_OBJ_GET_PROP_WRITE(ots->cur_obj->metadata.props)) { in oacp_write_proc_validate() 275 if (params->offset < ots->cur_obj->metadata.size.cur) { in oacp_write_proc_validate() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | dfu_metadata.c | 16 struct bt_mesh_dfu_metadata *metadata) in bt_mesh_dfu_metadata_decode() argument 22 metadata->fw_ver.major = net_buf_simple_pull_u8(buf); in bt_mesh_dfu_metadata_decode() 23 metadata->fw_ver.minor = net_buf_simple_pull_u8(buf); in bt_mesh_dfu_metadata_decode() 24 metadata->fw_ver.revision = net_buf_simple_pull_le16(buf); in bt_mesh_dfu_metadata_decode() 25 metadata->fw_ver.build_num = net_buf_simple_pull_le32(buf); in bt_mesh_dfu_metadata_decode() 26 metadata->fw_size = net_buf_simple_pull_le24(buf); in bt_mesh_dfu_metadata_decode() 27 metadata->fw_core_type = net_buf_simple_pull_u8(buf); in bt_mesh_dfu_metadata_decode() 29 if (metadata->fw_core_type & BT_MESH_DFU_FW_CORE_TYPE_APP) { in bt_mesh_dfu_metadata_decode() 34 metadata->comp_hash = net_buf_simple_pull_le32(buf); in bt_mesh_dfu_metadata_decode() 35 metadata->elems = net_buf_simple_pull_le16(buf); in bt_mesh_dfu_metadata_decode() [all …]
|
D | dfu_slot.c | 88 slot_to_store->slot.metadata, slot_to_store->slot.metadata_len); in slot_store() 157 const uint8_t *metadata, size_t metadata_len) in bt_mesh_dfu_slot_info_set() argument 171 memcpy(slot->slot.metadata, metadata, metadata_len); in bt_mesh_dfu_slot_info_set() 387 if (read_cb(cb_arg, &slots[idx].slot.metadata, in slot_data_load() 388 sizeof(slots[idx].slot.metadata)) < 0) { in slot_data_load()
|
D | dfu_slot.h | 49 const uint8_t *metadata, size_t metadata_len);
|
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/ |
D | lcd_srv.rst | 12 not fit in a Config Composition Data Status message and to expose metadata of the model instances. 21 Models metadata 25 metadata that can be read by the Large Composition Data Client model. The metadata list can be 26 associated with the :c:struct:`bt_mesh_model` through the :c:member:`bt_mesh_model.metadata` field. 27 The metadata list consists of one or more entries defined by the 29 metadata, and a pointer to the raw data. Entries can be created using the 31 marks the end of the metadata list and must always be present. If the model has no metadata, the
|
D | dfu.rst | 84 image and all its metadata to the Distributor node inside the mesh network. The Distributor 85 stores the firmware image and its metadata persistently, and awaits further instructions from the 122 Firmware metadata 123 The firmware metadata is used by the Target node to determine whether it should accept an 124 incoming firmware update, and what the effect of the update would be. The metadata format is 126 well as any preparation the Target node has to make before the image is applied. Typical metadata 128 BLOB. The Target node may perform a metadata check before accepting incoming transfers to 129 determine whether the transfer should be started. The firmware metadata can be discarded by the 130 Target node after the metadata check, as other nodes will never request the metadata from the 131 Target node. The firmware metadata is optional, and its maximum length is determined by [all …]
|
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/train/ |
D | train_magic_wand_model.ipynb | 20 "metadata": {} 24 "metadata": { 34 "metadata": { 55 "metadata": { 65 "metadata": { 77 "metadata": { 88 "metadata": { 103 "metadata": { 116 "metadata": { 131 "metadata": { [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | large_comp_data.c | 59 NET_BUF_SIMPLE_DEFINE(metadata, 64); in cmd_models_metadata_get() 61 .data = &metadata, in cmd_models_metadata_get() 67 net_buf_simple_init(&metadata, 0); in cmd_models_metadata_get() 87 SHELL_CMD_ARG(models-metadata-get, NULL, "<page> <offset>", cmd_models_metadata_get, 3, 0),
|
D | dfu.c | 78 struct net_buf_simple *metadata, in dfu_meta_check() argument 86 struct net_buf_simple *metadata, in dfu_start() argument 382 uint8_t metadata[CONFIG_BT_MESH_DFU_METADATA_MAXLEN]; in cmd_dfu_slot_add() local 405 metadata_len = hex2bin(argv[3], strlen(argv[3]), metadata, in cmd_dfu_slot_add() 406 sizeof(metadata)); in cmd_dfu_slot_add() 409 bt_mesh_dfu_slot_info_set(slot, size, metadata, metadata_len); in cmd_dfu_slot_add() 463 char metadata[2 * CONFIG_BT_MESH_DFU_METADATA_MAXLEN + 1]; in slot_info_print() local 468 len = bin2hex(slot->metadata, slot->metadata_len, metadata, in slot_info_print() 469 sizeof(metadata)); in slot_info_print() 470 metadata[len] = '\0'; in slot_info_print() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | dfu_metadata.h | 76 struct bt_mesh_dfu_metadata *metadata); 85 int bt_mesh_dfu_metadata_encode(const struct bt_mesh_dfu_metadata *metadata,
|
D | dfu_srv.h | 82 struct net_buf_simple *metadata, 115 struct net_buf_simple *metadata,
|
D | dfu.h | 162 uint8_t metadata[CONFIG_BT_MESH_DFU_METADATA_MAXLEN]; member
|
/Zephyr-latest/subsys/mgmt/updatehub/ |
D | updatehub.c | 114 static int metadata_hash_get(char *metadata) in metadata_hash_get() argument 122 if (updatehub_integrity_update(&local_crypto_ctx, metadata, strlen(metadata))) { in metadata_hash_get() 685 static void probe_cb(char *metadata, size_t metadata_size) in probe_cb() argument 728 memset(metadata, 0, metadata_size); in probe_cb() 729 memcpy(metadata, payload_start, payload_len); in probe_cb() 734 tmp_len = strlen(metadata); in probe_cb() 764 char *metadata = k_malloc(MAX_DOWNLOAD_DATA); in z_impl_updatehub_probe() local 772 metadata == NULL || metadata_copy == NULL) { in z_impl_updatehub_probe() 824 probe_cb(metadata, MAX_DOWNLOAD_DATA); in z_impl_updatehub_probe() 831 if (metadata_hash_get(metadata) < 0) { in z_impl_updatehub_probe() [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | ascs_internal.h | 89 uint8_t metadata[0]; member 98 uint8_t metadata[0]; member 107 uint8_t metadata[0]; member 195 struct bt_ascs_metadata metadata[0]; member 227 struct bt_ascs_metadata metadata[0]; member
|
D | bap_scan_delegator.c | 147 bt_hex(subgroup->metadata, subgroup->metadata_len)); in bt_debug_dump_recv_state() 215 (void)net_buf_simple_add_mem(&read_buf, subgroup->metadata, in net_buf_put_recv_state() 559 uint8_t *metadata; in scan_delegator_add_source() local 613 metadata = net_buf_simple_pull_mem(buf, subgroup->metadata_len); in scan_delegator_add_source() 614 (void)memcpy(subgroup->metadata, metadata, in scan_delegator_add_source() 719 uint8_t *metadata; in scan_delegator_mod_src() local 768 metadata = net_buf_simple_pull_mem(buf, subgroup->metadata_len); in scan_delegator_mod_src() 770 (void)memcpy(subgroup->metadata, metadata, in scan_delegator_mod_src() 801 memcmp(subgroups[i].metadata, state->subgroups[i].metadata, in scan_delegator_mod_src() 802 sizeof(subgroups[i].metadata)) != 0) { in scan_delegator_mod_src() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | bap_broadcast_assistant_test.c | 59 static uint8_t metadata[] = {BT_AUDIO_CODEC_DATA(BT_AUDIO_METADATA_TYPE_VENDOR, LONG_META)}; variable 104 char metadata[CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE] = {0}; in metadata_entry() local 106 (void)bin2hex(data->data, data->data_len, metadata, sizeof(metadata)); in metadata_entry() 109 data->data_len, data->type, metadata); in metadata_entry() 168 net_buf_simple_init_with_data(&buf, (void *)subgroup->metadata, in bap_broadcast_assistant_recv_state_cb() 505 subgroup.metadata_len = sizeof(metadata); in test_bass_mod_source_long_meta() 506 memcpy(subgroup.metadata, metadata, sizeof(metadata)); in test_bass_mod_source_long_meta()
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_nrf5.c | 483 nrf_802154_transmit_metadata_t metadata = { in nrf5_tx_immediate() local 495 return nrf_802154_transmit_raw(payload, &metadata); in nrf5_tx_immediate() 501 nrf_802154_transmit_csma_ca_metadata_t metadata = { in nrf5_tx_csma_ca() local 512 return nrf_802154_transmit_csma_ca_raw(payload, &metadata); in nrf5_tx_csma_ca() 543 nrf_802154_transmit_at_metadata_t metadata = { in nrf5_tx_at() local 569 return nrf_802154_transmit_raw_at(payload, tx_at, &metadata); in nrf5_tx_at() 1192 const nrf_802154_transmit_done_metadata_t *metadata) in nrf_802154_transmitted_raw() argument 1197 nrf5_data.tx_frame_is_secured = metadata->frame_props.is_secured; in nrf_802154_transmitted_raw() 1198 nrf5_data.tx_frame_mac_hdr_rdy = metadata->frame_props.dynamic_data_is_set; in nrf_802154_transmitted_raw() 1199 nrf5_data.ack_frame.psdu = metadata->data.transmitted.p_ack; in nrf_802154_transmitted_raw() [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/shell/ |
D | bap_broadcast_assistant.c | 119 char metadata[512]; in metadata_entry() local 121 bin2hex(data->data, data->data_len, metadata, sizeof(metadata)); in metadata_entry() 124 data->data_len, data->type, metadata); in metadata_entry() 160 net_buf_simple_init_with_data(&buf, (void *)subgroup->metadata, in bap_broadcast_assistant_recv_state_cb() 453 subgroup.metadata, in cmd_bap_broadcast_assistant_add_src() 454 sizeof(subgroup.metadata)); in cmd_bap_broadcast_assistant_add_src() 678 subgroup.metadata_len = hex2bin(argv[4], strlen(argv[4]), subgroup.metadata, in cmd_bap_broadcast_assistant_add_broadcast_id() 679 sizeof(subgroup.metadata)); in cmd_bap_broadcast_assistant_add_broadcast_id() 746 subgroup.metadata_len = hex2bin(argv[4], strlen(argv[4]), subgroup.metadata, in cmd_bap_broadcast_assistant_add_broadcast_name() 747 sizeof(subgroup.metadata)); in cmd_bap_broadcast_assistant_add_broadcast_name() [all …]
|
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/ |
D | bap_scan_delegator.rst | 31 <enc_state> [bis_sync [metadata]] 33 [metadata]] 35 [bis_sync [metadata]]
|
/Zephyr-latest/doc/services/storage/nvs/ |
D | nvs.rst | 19 Each element is stored in flash as metadata (8 byte) and data. The metadata is 21 written one after the other from the start of the sector. The metadata consists 23 only calculated over the metadata and only ensures that a write has been 36 of the metadata. Data that is written in flash without metadata is ignored 40 encounters an error it will ignore any data with missing/incorrect metadata. 89 for the metadata and 4 bytes for the data. When storing the data the
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_dfu.c | 189 struct net_buf_simple *metadata, in target_dfu_start() argument 438 uint8_t *metadata, size_t metadata_len) in slot_reserve_and_set() argument 453 err = bt_mesh_dfu_slot_info_set(new_slot, size, metadata, metadata_len); in slot_reserve_and_set() 468 uint8_t metadata[CONFIG_BT_MESH_DFU_METADATA_MAXLEN] = { 0xAA, 0xBB, 0xCC, 0xDD }; in slot_add() local 473 new_slot = slot_reserve_and_set(size, fwid, fwid_len, metadata, metadata_len); in slot_add() 600 uint8_t metadata[CONFIG_BT_MESH_DFU_METADATA_MAXLEN] = { 0 }; in test_dist_dfu_slot_create() local 613 metadata[0] = i; in test_dist_dfu_slot_create() 614 slot[i] = slot_reserve_and_set(size, fwid, fwid_len, metadata, metadata_len); in test_dist_dfu_slot_create() 641 uint8_t metadata[CONFIG_BT_MESH_DFU_METADATA_MAXLEN] = { 0 }; in check_slot() local 653 metadata[0] = idx + 2; in check_slot() [all …]
|