Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
dfu.h File Reference
#include <sys/types.h>
#include <zephyr/kernel.h>
#include <zephyr/bluetooth/mesh/blob.h>

Go to the source code of this file.

Data Structures

struct  bt_mesh_dfu_img
 DFU image instance. More...
 
struct  bt_mesh_dfu_slot
 DFU image slot for DFU distribution. More...
 

Macros

#define CONFIG_BT_MESH_DFU_FWID_MAXLEN   0
 
#define CONFIG_BT_MESH_DFU_METADATA_MAXLEN   0
 
#define CONFIG_BT_MESH_DFU_URI_MAXLEN   0
 
#define CONFIG_BT_MESH_DFU_SLOT_CNT   0
 

Enumerations

enum  bt_mesh_dfu_phase {
  BT_MESH_DFU_PHASE_IDLE , BT_MESH_DFU_PHASE_TRANSFER_ERR , BT_MESH_DFU_PHASE_TRANSFER_ACTIVE , BT_MESH_DFU_PHASE_VERIFY ,
  BT_MESH_DFU_PHASE_VERIFY_OK , BT_MESH_DFU_PHASE_VERIFY_FAIL , BT_MESH_DFU_PHASE_APPLYING , BT_MESH_DFU_PHASE_TRANSFER_CANCELED ,
  BT_MESH_DFU_PHASE_APPLY_SUCCESS , BT_MESH_DFU_PHASE_APPLY_FAIL , BT_MESH_DFU_PHASE_UNKNOWN
}
 DFU transfer phase. More...
 
enum  bt_mesh_dfu_status {
  BT_MESH_DFU_SUCCESS , BT_MESH_DFU_ERR_RESOURCES , BT_MESH_DFU_ERR_WRONG_PHASE , BT_MESH_DFU_ERR_INTERNAL ,
  BT_MESH_DFU_ERR_FW_IDX , BT_MESH_DFU_ERR_METADATA , BT_MESH_DFU_ERR_TEMPORARILY_UNAVAILABLE , BT_MESH_DFU_ERR_BLOB_XFER_BUSY
}
 DFU status. More...
 
enum  bt_mesh_dfu_effect { BT_MESH_DFU_EFFECT_NONE , BT_MESH_DFU_EFFECT_COMP_CHANGE_NO_RPR , BT_MESH_DFU_EFFECT_COMP_CHANGE , BT_MESH_DFU_EFFECT_UNPROV }
 Expected effect of a DFU transfer. More...
 
enum  bt_mesh_dfu_iter { BT_MESH_DFU_ITER_STOP , BT_MESH_DFU_ITER_CONTINUE }
 Action for DFU iteration callbacks. More...