Zephyr API 3.6.99
|
Firmware Distribution Server callbacks: More...
#include <dfd_srv.h>
Data Fields | |
int(* | recv )(struct bt_mesh_dfd_srv *srv, const struct bt_mesh_dfu_slot *slot, const struct bt_mesh_blob_io **io) |
Slot receive callback. | |
void(* | del )(struct bt_mesh_dfd_srv *srv, const struct bt_mesh_dfu_slot *slot) |
Slot delete callback. | |
int(* | send )(struct bt_mesh_dfd_srv *srv, const struct bt_mesh_dfu_slot *slot, const struct bt_mesh_blob_io **io) |
Slot send callback. | |
void(* | phase )(struct bt_mesh_dfd_srv *srv, enum bt_mesh_dfd_phase phase) |
Phase change callback (Optional). | |
Firmware Distribution Server callbacks:
void(* bt_mesh_dfd_srv_cb::del) (struct bt_mesh_dfd_srv *srv, const struct bt_mesh_dfu_slot *slot) |
Slot delete callback.
Called when the Firmware Distribution Server is about to delete a DFU image slot. All allocated data associated with the firmware slot should be deleted.
srv | Firmware Update Server instance. |
slot | DFU image slot being deleted. |
void(* bt_mesh_dfd_srv_cb::phase) (struct bt_mesh_dfd_srv *srv, enum bt_mesh_dfd_phase phase) |
Phase change callback (Optional).
Called whenever the phase of the Firmware Distribution Server changes.
srv | Firmware Distribution Server model instance. |
phase | New Firmware Distribution phase. |
int(* bt_mesh_dfd_srv_cb::recv) (struct bt_mesh_dfd_srv *srv, const struct bt_mesh_dfu_slot *slot, const struct bt_mesh_blob_io **io) |
Slot receive callback.
Called at the start of an upload procedure. The callback must fill io
with a pointer to a writable BLOB stream for the Firmware Distribution Server to write the firmware image to.
srv | Firmware Distribution Server model instance. |
slot | DFU image slot being received. |
io | BLOB stream response pointer. |
int(* bt_mesh_dfd_srv_cb::send) (struct bt_mesh_dfd_srv *srv, const struct bt_mesh_dfu_slot *slot, const struct bt_mesh_blob_io **io) |
Slot send callback.
Called at the start of a distribution procedure. The callback must fill io
with a pointer to a readable BLOB stream for the Firmware Distribution Server to read the firmware image from.
srv | Firmware Distribution Server model instance. |
slot | DFU image slot being sent. |
io | BLOB stream response pointer. |