nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
Bluetooth LE GATT DFU SMP Client API

API for the Bluetooth LE GATT DFU SMP (DFU_SMP) Client. More...

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...
 

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_statebt_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.
 

Detailed Description

API for the Bluetooth LE GATT DFU SMP (DFU_SMP) Client.