Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
dfu_metadata.h File Reference
#include <stdint.h>
#include <sys/types.h>
#include <zephyr/kernel.h>

Go to the source code of this file.

Data Structures

struct  bt_mesh_dfu_metadata_fw_ver
 Firmware version. More...
 
struct  bt_mesh_dfu_metadata
 Firmware metadata. More...
 

Enumerations

enum  bt_mesh_dfu_metadata_fw_core_type { BT_MESH_DFU_FW_CORE_TYPE_APP = BIT(0) , BT_MESH_DFU_FW_CORE_TYPE_NETWORK = BIT(1) , BT_MESH_DFU_FW_CORE_TYPE_APP_SPECIFIC_BLOB = BIT(2) }
 Firmware core type. More...
 

Functions

int bt_mesh_dfu_metadata_decode (struct net_buf_simple *buf, struct bt_mesh_dfu_metadata *metadata)
 Decode a firmware metadata from a network buffer.
 
int bt_mesh_dfu_metadata_encode (const struct bt_mesh_dfu_metadata *metadata, struct net_buf_simple *buf)
 Encode a firmare metadata into a network buffer.
 
int bt_mesh_dfu_metadata_comp_hash_get (struct net_buf_simple *buf, uint8_t *key, uint32_t *hash)
 Compute hash of the Composition Data state.
 
int bt_mesh_dfu_metadata_comp_hash_local_get (uint8_t *key, uint32_t *hash)
 Compute hash of the Composition Data Page 0 of this device.