Smart Remote 3 nRF52 v1.2
nrf_ble_dfu.h
1 /*$$$LICENCE_NORDIC_STANDARD<2016>$$$*/
15 #ifndef NRF_BLE_DFU_H__
16 #define NRF_BLE_DFU_H__
17 
18 #include <stdint.h>
19 #include "ble_gatts.h"
20 #include "ble.h"
21 
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 // This is a 16-bit UUID.
28 #define BLE_DFU_SERVICE_UUID 0xFE59
30 // These UUIDs are used with the Nordic base address to create a 128-bit UUID (0x8EC9XXXXF3154F609FB8838830DAEA50).
31 #define BLE_DFU_CTRL_PT_UUID 0x0001
32 #define BLE_DFU_PKT_CHAR_UUID 0x0002
39 typedef enum
40 {
48 
49 
54 typedef struct
55 {
56  uint16_t service_handle;
57  uint8_t uuid_type;
58  ble_gatts_char_handles_t dfu_pkt_handles;
59  ble_gatts_char_handles_t dfu_ctrl_pt_handles;
60 } ble_dfu_t;
61 
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #endif // NRF_BLE_DFU_H__
68 

Documentation feedback | Developer Zone | Subscribe | Updated