Buttonless DFU Service module. More...
Data Structures | |
struct | ble_dfu_evt_t |
struct | ble_dfu_s |
struct | ble_dfu_init_t |
Macros | |
#define | BLE_DFU_BUTTONLESS_CHAR_UUID 0x0003 |
#define | BLE_NORDIC_VENDOR_BASE_UUID |
#define | BLE_DFU_ENTER_BOOTLOADER 0x01 |
Typedefs | |
typedef struct ble_dfu_s | ble_dfu_t |
typedef void(* | ble_dfu_evt_handler_t )(ble_dfu_t *p_dfu, ble_dfu_evt_t *p_evt) |
Nordic Buttonless DFU Service event handler type. | |
Enumerations | |
enum | ble_dfu_evt_type_t { BLE_DFU_EVT_ENTERING_BOOTLOADER, BLE_DFU_EVT_INDICATION_ENABLED, BLE_DFU_EVT_INDICATION_DISABLED } |
enum | ble_dfu_rsp_code_t { DFU_RSP_RESERVED = 0x00, DFU_RSP_SUCCESS = 0x01, DFU_RSP_OP_CODE_NOT_SUPPORTED = 0x02, DFU_RSP_OPERATION_FAILED = 0x04, DFU_RSP_CCCD_CONFIG_IMPROPER = BLE_GATT_STATUS_ATTERR_CPS_CCCD_CONFIG_ERROR } |
enum | ble_dfu_buttonless_op_code_t { DFU_OP_RESERVED = 0x00, DFU_OP_ENTER_BOOTLOADER = 0x01, DFU_OP_RESPONSE_CODE = 0x20 } |
Functions | |
uint32_t | ble_dfu_init (ble_dfu_t *p_dfu, const ble_dfu_init_t *p_dfu_init) |
Function for initializing the Device Firmware Update module. More... | |
void | ble_dfu_on_ble_evt (ble_dfu_t *p_dfu, ble_evt_t *p_ble_evt) |
Function for handling the Application's BLE Stack events. More... | |
Buttonless DFU Service module.
#define BLE_DFU_BUTTONLESS_CHAR_UUID 0x0003 |
Nordic vendor specific base UUID.
#define BLE_NORDIC_VENDOR_BASE_UUID |
enum ble_dfu_evt_type_t |
enum ble_dfu_rsp_code_t |
uint32_t ble_dfu_init | ( | ble_dfu_t * | p_dfu, |
const ble_dfu_init_t * | p_dfu_init | ||
) |
Function for initializing the Device Firmware Update module.
[in] | p_dfu | DFU Service structure. |
[in] | p_dfu_init | The structure containing the values of characteristics needed by the service. |