nRF Connect SDK API 2.8.99
|
#include <stdbool.h>
#include <zephyr/bluetooth/gatt.h>
#include <zephyr/bluetooth/conn.h>
#include <bluetooth/gatt_dm.h>
Go to the source code of this file.
Data Structures | |
struct | bt_dfu_smp_header |
Header used internally by dfu_smp. More... | |
struct | bt_dfu_smp_rsp_state |
Current response state. More... | |
struct | bt_dfu_smp_init_params |
DFU SMP Client parameters for the initialization function. More... | |
struct | bt_dfu_smp |
DFU SMP Client structure. More... | |
struct | bt_dfu_smp::bt_dfu_smp_handles |
struct | bt_dfu_smp::bt_dfu_smp_cbs |
Macros | |
#define | BT_UUID_DFU_SMP_SERVICE_VAL BT_UUID_128_ENCODE(0x8D53DC1D, 0x1DB7, 0x4CD3, 0x868B, 0x8A527460AA84) |
SMP Service. | |
#define | BT_UUID_DFU_SMP_SERVICE BT_UUID_DECLARE_128(BT_UUID_DFU_SMP_SERVICE_VAL) |
#define | BT_UUID_DFU_SMP_CHAR_VAL BT_UUID_128_ENCODE(0xDA2E7828, 0xFBCE, 0x4E01, 0xAE9E, 0x261174997C48) |
SMP Characteristic. | |
#define | BT_UUID_DFU_SMP_CHAR BT_UUID_DECLARE_128(BT_UUID_DFU_SMP_CHAR_VAL) |
Typedefs | |
typedef void(* | bt_dfu_smp_rsp_part_cb) (struct bt_dfu_smp *dfu_smp) |
Handle part of the response. | |
typedef void(* | bt_dfu_smp_error_cb) (struct bt_dfu_smp *dfu_smp, int err) |
Global function that is called when an error occurs. | |
Functions | |
int | bt_dfu_smp_init (struct bt_dfu_smp *dfu_smp, const struct bt_dfu_smp_init_params *params) |
Initialize the DFU SMP Client module. | |
int | bt_dfu_smp_handles_assign (struct bt_gatt_dm *dm, struct bt_dfu_smp *dfu_smp) |
Assign handles to the DFU SMP Client instance. | |
int | bt_dfu_smp_command (struct bt_dfu_smp *dfu_smp, bt_dfu_smp_rsp_part_cb rsp_cb, size_t cmd_size, const void *cmd_data) |
Execute a command. | |
struct bt_conn * | bt_dfu_smp_conn (const struct bt_dfu_smp *dfu_smp) |
Get the connection object that is used with the DFU SMP Client. | |
const struct bt_dfu_smp_rsp_state * | bt_dfu_smp_rsp_state (const struct bt_dfu_smp *dfu_smp) |
Get the current response state. | |
bool | bt_dfu_smp_rsp_total_check (const struct bt_dfu_smp *dfu_smp) |
Check if all response parts have been received. | |