Smart Remote 3 nRF52 v1.2
Introduction
API Reference
Modules
Data Structures
All
Data Structures
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
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
{
41
BLE_DFU_OP_CODE_CREATE_OBJECT
= 0x01,
42
BLE_DFU_OP_CODE_SET_RECEIPT_NOTIF
= 0x02,
43
BLE_DFU_OP_CODE_CALCULATE_CRC
= 0x03,
44
BLE_DFU_OP_CODE_EXECUTE_OBJECT
= 0x04,
45
BLE_DFU_OP_CODE_SELECT_OBJECT
= 0x06,
46
BLE_DFU_OP_CODE_RESPONSE
= 0x60
47
}
ble_dfu_op_code_t
;
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