Buttonless DFU Service module. More...
Data Structures | |
struct | ble_dfu_evt_t |
struct | ble_dfu_s |
struct | ble_dfu_init_t |
Macros | |
#define | BLE_UUID_DFU_SERVICE 0x0001 |
#define | BLE_DFU_BASE_UUID {{0x50, 0xEA, 0xDA, 0x30, 0x88, 0x83, 0xB8, 0x9F, 0x60, 0x4F, 0x15, 0xF3, 0x00, 0x00, 0x40, 0x8E}} |
#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 UART 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_BASE_UUID {{0x50, 0xEA, 0xDA, 0x30, 0x88, 0x83, 0xB8, 0x9F, 0x60, 0x4F, 0x15, 0xF3, 0x00, 0x00, 0x40, 0x8E}} |
Used vendor specific 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. |