Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Common types and functions for the Bluetooth Mesh DFU metadata. More...
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 firmware 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. | |
Common types and functions for the Bluetooth Mesh DFU metadata.
#include <include/zephyr/bluetooth/mesh/dfu_metadata.h>
Firmware core type.
Enumerator | |
---|---|
BT_MESH_DFU_FW_CORE_TYPE_APP | Application core. |
BT_MESH_DFU_FW_CORE_TYPE_NETWORK | Network core. |
BT_MESH_DFU_FW_CORE_TYPE_APP_SPECIFIC_BLOB | Application-specific BLOB. |
int bt_mesh_dfu_metadata_comp_hash_get | ( | struct net_buf_simple * | buf, |
uint8_t * | key, | ||
uint32_t * | hash | ||
) |
#include <include/zephyr/bluetooth/mesh/dfu_metadata.h>
Compute hash of the Composition Data state.
The format of the Composition Data is defined in MshPRTv1.1: 4.2.2.1.
buf | Pointer to buffer holding Composition Data. |
key | 128-bit key to be used in the hash computation. |
hash | Pointer to a memory location to which the hash will be stored. |
#include <include/zephyr/bluetooth/mesh/dfu_metadata.h>
Compute hash of the Composition Data Page 0 of this device.
key | 128-bit key to be used in the hash computation. |
hash | Pointer to a memory location to which the hash will be stored. |
int bt_mesh_dfu_metadata_decode | ( | struct net_buf_simple * | buf, |
struct bt_mesh_dfu_metadata * | metadata | ||
) |
#include <include/zephyr/bluetooth/mesh/dfu_metadata.h>
Decode a firmware metadata from a network buffer.
buf | Buffer containing a raw metadata to be decoded. |
metadata | Pointer to a metadata structure to be filled. |
int bt_mesh_dfu_metadata_encode | ( | const struct bt_mesh_dfu_metadata * | metadata, |
struct net_buf_simple * | buf | ||
) |
#include <include/zephyr/bluetooth/mesh/dfu_metadata.h>
Encode a firmware metadata into a network buffer.
metadata | Firmware metadata to be encoded. |
buf | Buffer to store the encoded metadata. |