Smart Remote 3 nRF52 v1.2
Data Structures | Macros | Enumerations
DFU BLE Service

Device Firmware Update (DFU) transport layer for Bluetooth low energy. More...

Data Structures

struct  ble_dfu_t
 DFU Service. More...
 

Macros

#define BLE_DFU_CTRL_PT_UUID   0x0001
 
#define BLE_DFU_PKT_CHAR_UUID   0x0002
 
#define BLE_DFU_SERVICE_UUID   0xFE59
 

Enumerations

enum  ble_dfu_op_code_t {
  BLE_DFU_OP_CODE_CREATE_OBJECT = 0x01, BLE_DFU_OP_CODE_SET_RECEIPT_NOTIF = 0x02, BLE_DFU_OP_CODE_CALCULATE_CRC = 0x03, BLE_DFU_OP_CODE_EXECUTE_OBJECT = 0x04,
  BLE_DFU_OP_CODE_SELECT_OBJECT = 0x06, BLE_DFU_OP_CODE_RESPONSE = 0x60
}
 BLE DFU opcodes. More...
 

Detailed Description

Device Firmware Update (DFU) transport layer for Bluetooth low energy.

The Device Firmware Update (DFU) Service is a GATT-based service that can be used for performing firmware updates over BLE. Note that this implementation uses vendor-specific UUIDs for the service and characteristics and is intended to demonstrate firmware updates over BLE.

Macro Definition Documentation

#define BLE_DFU_CTRL_PT_UUID   0x0001

UUID of the DFU Control Point.

#define BLE_DFU_PKT_CHAR_UUID   0x0002

UUID of the DFU Packet Characteristic.

#define BLE_DFU_SERVICE_UUID   0xFE59

UUID of the DFU Service.

Enumeration Type Documentation

BLE DFU opcodes.

These types of opcodes are used in control point access.

Enumerator
BLE_DFU_OP_CODE_CREATE_OBJECT 

Value of the opcode field for a 'Create object' request.

BLE_DFU_OP_CODE_SET_RECEIPT_NOTIF 

Value of the opcode field for a 'Set Packet Receipt Notification' request.

BLE_DFU_OP_CODE_CALCULATE_CRC 

Value of the opcode field for a 'Calculating checksum' request.

BLE_DFU_OP_CODE_EXECUTE_OBJECT 

Value of the opcode field for an 'Initialize DFU parameters' request.

BLE_DFU_OP_CODE_SELECT_OBJECT 

Value of the opcode field for a 'Select object' request.

BLE_DFU_OP_CODE_RESPONSE 

Value of the opcode field for a response.


Documentation feedback | Developer Zone | Subscribe | Updated