Home
last modified time | relevance | path

Searched refs:dfu_tx (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/subsys/bluetooth/mesh/shell/
Ddfu.c515 } dfu_tx; variable
519 sys_slist_init(&dfu_tx.inputs.targets); in dfu_tx_prepare()
521 for (size_t i = 0; i < dfu_tx.target_cnt; i++) { in dfu_tx_prepare()
523 uint16_t addr = dfu_tx.targets[i].blob.addr; in dfu_tx_prepare()
525 memset(&dfu_tx.targets[i].blob, 0, sizeof(struct bt_mesh_blob_target)); in dfu_tx_prepare()
526 memset(&dfu_tx.pull[i], 0, sizeof(struct bt_mesh_blob_target_pull)); in dfu_tx_prepare()
527 dfu_tx.targets[i].blob.addr = addr; in dfu_tx_prepare()
528 dfu_tx.targets[i].blob.pull = &dfu_tx.pull[i]; in dfu_tx_prepare()
530 sys_slist_append(&dfu_tx.inputs.targets, &dfu_tx.targets[i].blob.n); in dfu_tx_prepare()
548 if (dfu_tx.target_cnt == ARRAY_SIZE(dfu_tx.targets)) { in cmd_dfu_target()
[all …]
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp_mesh.c4140 } dfu_tx; variable
4144 sys_slist_init(&dfu_tx.inputs.targets); in dfu_tx_prepare()
4146 for (int i = 0; i < dfu_tx.target_cnt; i++) { in dfu_tx_prepare()
4148 uint16_t addr = dfu_tx.targets[i].blob.addr; in dfu_tx_prepare()
4150 memset(&dfu_tx.targets[i].blob, 0, in dfu_tx_prepare()
4152 memset(&dfu_tx.pull[i], 0, in dfu_tx_prepare()
4154 dfu_tx.targets[i].blob.addr = addr; in dfu_tx_prepare()
4155 dfu_tx.targets[i].blob.pull = &dfu_tx.pull[i]; in dfu_tx_prepare()
4157 sys_slist_append(&dfu_tx.inputs.targets, in dfu_tx_prepare()
4158 &dfu_tx.targets[i].blob.n); in dfu_tx_prepare()
[all …]